]> git.sur5r.net Git - bacula/bacula/commitdiff
Use IPPROTO_TCP for SOL_TCP if SOL_TCP isn't defined.
authorMarco van Wieringen <mvw@planets.elm.net>
Sun, 3 Jun 2012 21:06:58 +0000 (23:06 +0200)
committerMarco van Wieringen <mvw@planets.elm.net>
Sun, 3 Jun 2012 21:06:58 +0000 (23:06 +0200)
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

index 4dd3955522c36028aab495c0e65ddd8f99ce653a..b6b06ea896c175cafe8bc059ac5223a3f4c5c784 100644 (file)
 #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)