From 450d6875ecc22baa6012452dc332ba607fdb5917 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 23 Jun 2007 13:45:29 +0000 Subject: [PATCH] Fix Win32 SHUT_RDWR problem git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5072 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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 0e7f812738..88841f322f 100644 --- a/bacula/src/lib/bsock.c +++ b/bacula/src/lib/bsock.c @@ -784,6 +784,10 @@ int BSOCK::wait_data_intr(int sec) * Note, this routine closes and destroys all the sockets * that are open including the duped ones. */ +#ifndef SHUT_RDWR +#define SHUT_RDWR 2 +#endif + void BSOCK::close() { BSOCK *bsock = this; -- 2.39.5