Fix some BSD portability issues

Thanks to mdg on the forum and the Debian buildd.
stable-5.3
Günther Brammer 2012-11-19 17:23:31 +01:00
parent b78664b43c
commit f9f784a285
2 changed files with 3 additions and 1 deletions

View File

@ -39,6 +39,8 @@
#define SOCKET int
#define INVALID_SOCKET (-1)
#include <arpa/inet.h>
// for htons
#include <netinet/in.h>
#endif
#ifdef HAVE_SYS_TYPES_H

View File

@ -217,7 +217,7 @@ inline int stricmp(const char *s1, const char *s2)
#elif defined(__APPLE__)
#define C4_OS "mac-x86"
#else
#define C4_OS "unknown";
#define C4_OS ""
#endif
// delete item to the recycle bin