From: Nicolas Boichat Date: Sat, 24 Apr 2004 11:30:13 +0000 (+0000) Subject: added winsock functions definitions on everything but Windows. X-Git-Tag: Release-7.0.0~9472 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f25b09ef72e1df62bad92460fc785a0a3b9cddaa;p=bacula%2Fbacula added winsock functions definitions on everything but Windows. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1288 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/baconfig.h b/bacula/src/baconfig.h index 92a555c9fb..8aacd9c478 100644 --- a/bacula/src/baconfig.h +++ b/bacula/src/baconfig.h @@ -459,6 +459,12 @@ extern "C" int getdomainname(char *name, int len); #undef HAVE_GETDOMAINNAME #endif +/* Define Winsock functions if we aren't on Windows */ +#if (!defined HAVE_WIN32) || (defined HAVE_CYGWIN) +#define WSA_Init() 0 /* 0 = success */ +#define WSACleanup() 0 /* 0 = success */ +#endif + #ifdef HAVE_AIX_OS #endif