DragonFly users List (threaded) for 2011-03
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
SO_NOSIGPIPE
I'm trying to compile Bitcoin and I get the following (after configuring
wxWidgets correctly and installing a few packages):
# gmake -f ./makefile.unix
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/usr/local/include/wx-2.9" -I"/usr/pkg/include" -I"/usr/pkg/include/db5" -I"/usr/local/lib/wx/include/gtk2-unicode-static-2.9" -DGUI -o
obj/net.o net.cpp
net.cpp: In function 'bool ConnectSocket(const CAddress&, SOCKET&)':
net.cpp:70: error: 'SO_NOSIGPIPE' was not declared in this scope
net.cpp: In function 'bool BindListenPort(std::string&)':
net.cpp:1254: error: 'SO_NOSIGPIPE' was not declared in this scope
gmake: *** [obj/net.o] Error 1
I look at net.cpp and find this:
#ifdef BSD
int set = 1;
setsockopt(hSocket, SOL_SOCKET, SO_NOSIGPIPE, (void*)&set, sizeof(int));
#endif
#ifdef BSD
// Different way of disabling SIGPIPE on BSD
setsockopt(hListenSocket, SOL_SOCKET, SO_NOSIGPIPE, (void*)&nOne,
sizeof(int
));
#endif
Is something else missing from an include file, or is there no SO_NOSIGPIPE on
DFly?
Pierre
--
I believe in Yellow when I'm in Sweden and in Black when I'm in Wales.
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]