Make it compile on IBM AIX systems

Closes #422
This commit is contained in:
Jan-Erik Rediger 2018-01-05 16:27:10 +01:00
parent a827f5a898
commit 952a33f298
2 changed files with 8 additions and 1 deletions

View File

@ -16,6 +16,8 @@
#define _XOPEN_SOURCE #define _XOPEN_SOURCE
#elif defined(__FreeBSD__) #elif defined(__FreeBSD__)
// intentionally left blank, don't define _XOPEN_SOURCE // intentionally left blank, don't define _XOPEN_SOURCE
#elif defined(AIX)
// intentionally left blank, don't define _XOPEN_SOURCE
#else #else
#define _XOPEN_SOURCE #define _XOPEN_SOURCE
#endif #endif
@ -28,4 +30,9 @@
#define _OSX #define _OSX
#endif #endif
#ifndef AIX
# define _XOPEN_SOURCE_EXTENDED 1
# define _ALL_SOURCE
#endif
#endif #endif

2
net.h
View File

@ -37,7 +37,7 @@
#include "hiredis.h" #include "hiredis.h"
#if defined(__sun) #if defined(__sun) || defined(AIX)
#define AF_LOCAL AF_UNIX #define AF_LOCAL AF_UNIX
#endif #endif