From 11aa8a8ce8ef220e3f30a8e2418b7632a95c0aa1 Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Sun, 3 Jun 2012 23:06:58 +0200 Subject: [PATCH] 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. --- bacula/src/lib/bsock.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.39.5