X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fincludes%2Fstgdefs.h;fp=ghc%2Fincludes%2Fstgdefs.h;h=50eb657900611e88f8bd90189de1d41561999ea7;hb=66982e0f7224becdb8f70ada0ec71b758e393edd;hp=1b1f9afc239112bdbad96b4d98d67c4f58f36f2c;hpb=1119f4612631e3df2eb704dbde8b3d7625f0a477;p=ghc-hetmet.git diff --git a/ghc/includes/stgdefs.h b/ghc/includes/stgdefs.h index 1b1f9af..50eb657 100644 --- a/ghc/includes/stgdefs.h +++ b/ghc/includes/stgdefs.h @@ -44,12 +44,20 @@ void _stgAssert PROTO((char *, unsigned int)); #ifdef nextstep3_TARGET_OS #define _NEXT_SOURCE #endif - + +#ifdef aix_TARGET_OS +/* for fd_set */ +#include +#endif + #ifdef NON_POSIX_SOURCE #undef _POSIX_SOURCE #undef _POSIX_C_SOURCE #else +# ifndef aix_TARGET_OS +/* already defined on aix */ #define _POSIX_SOURCE 1 +# endif #ifndef irix_TARGET_OS #define _POSIX_C_SOURCE 199301L #else