From f25b09ef72e1df62bad92460fc785a0a3b9cddaa Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Sat, 24 Apr 2004 11:30:13 +0000 Subject: [PATCH] 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 --- bacula/src/baconfig.h | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5