diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2015-12-03 22:25:13 +0100 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2015-12-03 22:26:18 +0100 |
commit | 5740003e06f0c585460501514f3352f5e105c98c (patch) | |
tree | c70ca6e115f9420e6aab09b72f454d1bc7ad45df /cbits | |
parent | 03632e32eb1d2e8f5d41ddc0f81bc6eff6a343c9 (diff) |
Simplify code via AC_USE_SYSTEM_EXTENSIONS
`AC_USE_SYSTEM_EXTENSIONS` takes care of defining feature_test_macros(7)
thereby allowing us to remove a few manual `#define`s
Diffstat (limited to 'cbits')
-rw-r--r-- | cbits/dirUtils.c | 11 | ||||
-rw-r--r-- | cbits/execvpe.c | 4 |
2 files changed, 0 insertions, 15 deletions
diff --git a/cbits/dirUtils.c b/cbits/dirUtils.c index 6fc0830..0a645eb 100644 --- a/cbits/dirUtils.c +++ b/cbits/dirUtils.c @@ -4,17 +4,6 @@ * Directory Runtime Support */ -/* needed only for solaris2_HOST_OS */ -#ifdef __GLASGOW_HASKELL__ -#include "ghcconfig.h" -#endif - -// The following is required on Solaris to force the POSIX versions of -// the various _r functions instead of the Solaris versions. -#ifdef solaris2_HOST_OS -#define _POSIX_PTHREAD_SEMANTICS -#endif - #include "HsUnix.h" /* diff --git a/cbits/execvpe.c b/cbits/execvpe.c index c27bca9..82e1bdc 100644 --- a/cbits/execvpe.c +++ b/cbits/execvpe.c @@ -11,10 +11,6 @@ #include "HsUnixConfig.h" -#if HAVE_EXECVPE -# define _GNU_SOURCE -#endif - #include <errno.h> #include <sys/types.h> #if HAVE_SYS_WAIT_H |