diff options
| author | Szabolcs Nagy <nsz@port70.net> | 2013-12-12 05:09:18 +0000 |
|---|---|---|
| committer | Szabolcs Nagy <nsz@port70.net> | 2013-12-12 05:09:18 +0000 |
| commit | 571744447c23f91feb6439948f3a619aca850dfb (patch) | |
| tree | 996c6f90721d69494683ae213ec22784d02a899a /src/env | |
| parent | remove an unnecessary check in inet_pton (diff) | |
| download | grovel-571744447c23f91feb6439948f3a619aca850dfb.tar.gz grovel-571744447c23f91feb6439948f3a619aca850dfb.tar.xz | |
include cleanups: remove unused headers and add feature test macros
Diffstat (limited to 'src/env')
| -rw-r--r-- | src/env/__init_security.c | 1 | ||||
| -rw-r--r-- | src/env/__stack_chk_fail.c | 3 | ||||
| -rw-r--r-- | src/env/clearenv.c | 1 | ||||
| -rw-r--r-- | src/env/putenv.c | 2 | ||||
| -rw-r--r-- | src/env/unsetenv.c | 1 |
5 files changed, 2 insertions, 6 deletions
diff --git a/src/env/__init_security.c b/src/env/__init_security.c index 91b9b100..6204c5e1 100644 --- a/src/env/__init_security.c +++ b/src/env/__init_security.c @@ -1,4 +1,3 @@ -#include <stddef.h> #include <elf.h> #include <poll.h> #include <fcntl.h> diff --git a/src/env/__stack_chk_fail.c b/src/env/__stack_chk_fail.c index 031a1ed7..daa1b078 100644 --- a/src/env/__stack_chk_fail.c +++ b/src/env/__stack_chk_fail.c @@ -1,6 +1,5 @@ #include <string.h> -#include <inttypes.h> -#include <elf.h> +#include <stdint.h> #include "pthread_impl.h" #include "atomic.h" diff --git a/src/env/clearenv.c b/src/env/clearenv.c index a2475ce7..62d50952 100644 --- a/src/env/clearenv.c +++ b/src/env/clearenv.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE #include <stdlib.h> extern char **__environ; diff --git a/src/env/putenv.c b/src/env/putenv.c index d141db13..4042869b 100644 --- a/src/env/putenv.c +++ b/src/env/putenv.c @@ -1,7 +1,5 @@ #include <stdlib.h> #include <string.h> -#include <errno.h> -#include <stdio.h> extern char **__environ; char **__env_map; diff --git a/src/env/unsetenv.c b/src/env/unsetenv.c index 7493d970..35693354 100644 --- a/src/env/unsetenv.c +++ b/src/env/unsetenv.c @@ -1,4 +1,3 @@ -#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> |
