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-Tag: Release-5.2.8~19 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=11aa8a8ce8ef220e3f30a8e2418b7632a95c0aa1;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)