Skip to content

Commit

Permalink
solve #1967 compile problem for FreeBSD ??? (#1977)
Browse files Browse the repository at this point in the history
Co-authored-by: Giloo <gildas@localhost>
  • Loading branch information
GillesDuvert and Giloo authored Feb 2, 2025
1 parent 9b47787 commit c19e323
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gdl2gdl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ messageBoxHandle StartIndividualClientMessageChannel(std::string & name){

name=G2G_SERVER_QUEUE_BASENAME+i2s(getpid())+"_"+i2s(++ClientSessionNumber);
messageBoxHandle h;
if ((h = mq_open(name.c_str(), O_RDONLY | O_CREAT, QUEUE_PERMISSIONS, &attr)) == -1) {
if ((h = mq_open(name.c_str(), O_RDONLY | O_CREAT, QUEUE_PERMISSIONS, &attr)) == (messageBoxHandle)-1) {
throw GDLException("Server: mq_open (client) :"+string(strerror(errno)));
}
return h;
Expand All @@ -447,7 +447,7 @@ void gdl_ipc_ClientClosesMailBox(){
}
void gdl_ipc_ClientGetsMailboxAddress(std::string & s) {
g2gClientMailbox=s;
if ((gdl2gdlMessageBoxHandle = mq_open(g2gClientMailbox.c_str(), O_WRONLY)) == -1) {
if ((gdl2gdlMessageBoxHandle = mq_open(g2gClientMailbox.c_str(), O_WRONLY)) == (messageBoxHandle)-1) {
throw GDLException("Server: mq_open (server) :"+string(strerror(errno)));
}
//here is a good point to start to be absolutely silent
Expand Down

0 comments on commit c19e323

Please sign in to comment.