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-7.0.0~206 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=de14922ad8a322b26fbccc3accf43416815d31eb;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)