From: Marco van Wieringen Date: Sun, 3 Jun 2012 21:06:58 +0000 (+0200) Subject: Use IPPROTO_TCP for SOL_TCP if SOL_TCP isn't defined. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c1541bc2d7658ce46d96f443656838f89639a76d;p=bacula%2Fbacula Use IPPROTO_TCP for SOL_TCP if SOL_TCP isn't defined. On a lot of platforms (*BSD, Solaris etc.) SOL_TCP isn't defined but IPPROTO_TCP is so use that. --- diff --git a/bacula/src/lib/bsock.c b/bacula/src/lib/bsock.c index 4dd3955522..b6b06ea896 100644 --- a/bacula/src/lib/bsock.c +++ b/bacula/src/lib/bsock.c @@ -41,6 +41,10 @@ #define ENODATA EPIPE #endif +#ifndef SOL_TCP +#define SOL_TCP IPPROTO_TCP +#endif + #ifdef HAVE_WIN32 #define socketRead(fd, buf, len) ::recv(fd, buf, len, 0) #define socketWrite(fd, buf, len) ::send(fd, buf, len, 0)