]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix Win32 SHUT_RDWR problem
authorKern Sibbald <kern@sibbald.com>
Sat, 23 Jun 2007 13:45:29 +0000 (13:45 +0000)
committerKern Sibbald <kern@sibbald.com>
Sat, 23 Jun 2007 13:45:29 +0000 (13:45 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5072 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/lib/bsock.c

index 0e7f81273894e13964380d6e4ce1edf67cd01b1e..88841f322f23adb65325a16472ada5bcb7bcd59c 100644 (file)
@@ -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;