[Nut-upsdev] MSG_NOSIGNAL does not exist in OS X

Charles Lepple clepple at gmail.com
Sun Feb 10 18:21:43 UTC 2008


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

More information about the Nut-upsdev mailing list