Arnaud, I'm seeing an error with the XML/HTTP driver in NUT: (from http://buildbot.ghz.cc/public/nut/MacOSX-10.4-G4/builds/3/step- compile/0 ) if gcc -DHAVE_CONFIG_H -I. -I../../drivers -I../include -I../../ include -I/sw/include -g -Os -pipe -pipe -Ddarwin8 -I/System/Library/ Frameworks/System.framework/PrivateHeaders -I. -I/usr/include - DMGEXML_MODE -DMGE_MODE -O -Wall -Wsign-compare -MT mge_xml-libmge- xml.o -MD -MP -MF ".deps/mge_xml-libmge-xml.Tpo" -c -o mge_xml-libmge- xml.o `test -f 'libmge-xml.c' || echo '../../drivers/'`libmge-xml.c; \ then mv -f ".deps/mge_xml-libmge-xml.Tpo" ".deps/mge_xml-libmge- xml.Po"; else rm -f ".deps/mge_xml-libmge-xml.Tpo"; exit 1; fi ../../drivers/libmge-xml.c: In function 'getHTTP': ../../drivers/libmge-xml.c:836: error: 'MSG_NOSIGNAL' undeclared (first use in this function) ../../drivers/libmge-xml.c:836: error: (Each undeclared identifier is reported only once ../../drivers/libmge-xml.c:836: error: for each function it appears in.) What is the side effect of not using MSG_NOSIGNAL? I could just #define it to 0, but I don't know if this would cause any problems. -- Charles Lepple clepple at gmail
> I'm seeing an error with the XML/HTTP driver in NUT:[...]> What is the side effect of not using MSG_NOSIGNAL? I could just > #define it to 0, but I don't know if this would cause any problems.The MSG_NOSIGNAL prevents send() from sending the SIGPIPE signal in case the connection is broken and instead it will only return errno EPIPE. In NUT drivers, there is no difference, since we ignore this signal (through setup_signals() in 'main.c') anyway. Since MSG_NOSIGNAL is not POSIX compliant, it should not be used. I've volunteered to work on this, so this will be fixed when the 'libtcp' (I'm open to suggestions for better names) I'm working on is ready. It will have a similar interface as the ser_* functions we already have in 'serial.c' (now you also know where my recent changes originate from). Best regards, Arjen -- Eindhoven - The Netherlands Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57