diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-08-16 18:57:06 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-08-16 18:57:06 -0400 |
commit | d82a95f6e907652151f658d140fcd47a26b70976 (patch) | |
tree | 40537ef77408c54b83a4c76cecd910e435aea4ad /src | |
parent | 734d7730bc1012e2ad008a669e6d91bc55acabe6 (diff) |
clean up
Diffstat (limited to 'src')
-rw-r--r-- | src/stdlib/system.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/stdlib/system.c b/src/stdlib/system.c index 612a9570..ce24c83c 100644 --- a/src/stdlib/system.c +++ b/src/stdlib/system.c @@ -1,18 +1,17 @@ #include <stdlib.h> -#if defined _POSIX_SOURCE || defined _POSIX_C_SOURCE || defined _XOPEN_SOURCE -# include "errno.h" -# include "sys/types.h" -# include "unistd.h" -# include "sys/wait.h" -# define USE_FORK +#ifdef _POSIX_SOURCE +# include <errno.h> +# include <sys/types.h> +# include <unistd.h> +# include <sys/wait.h> #endif /** execute a command **/ int system(const char * string) { - #if defined USE_FORK + #ifdef _POSIX_SOURCE pid_t pid; int status; |