miniupnpc: Compile with GNU/Hurd and GNU/kFreeBSD

This commit is contained in:
Thomas Bernard 2014-06-02 17:13:52 +02:00
parent f841aa9e56
commit e222e50b24
2 changed files with 7 additions and 1 deletions

View File

@ -17,7 +17,7 @@
#endif
#endif
#if !defined(__DragonFly__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(MACOSX) && !defined(_WIN32) && !defined(__CYGWIN__) && !defined(__sun)
#if !defined(__DragonFly__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(MACOSX) && !defined(_WIN32) && !defined(__CYGWIN__) && !defined(__sun) && !defined(__GNU__) && !defined(__FreeBSD_kernel__)
#define HAS_IP_MREQN
#endif
@ -70,6 +70,9 @@
/* Amiga OS specific stuff */
#define TIMEVAL struct timeval
#endif
#ifdef __GNU__
#define MAXHOSTNAMELEN 64
#endif
#if defined(HAS_IP_MREQN) && defined(NEED_STRUCT_IP_MREQN)

View File

@ -43,6 +43,9 @@
#if defined(__sun) || defined(sun)
#define MIN(x,y) (((x)<(y))?(x):(y))
#endif
#ifdef __GNU__
#define MAXHOSTNAMELEN 64
#endif
#include "miniupnpcstrings.h"
#include "miniwget.h"