summaryrefslogtreecommitdiff
path: root/src/env
diff options
context:
space:
mode:
Diffstat (limited to 'src/env')
-rw-r--r--src/env/__init_security.c1
-rw-r--r--src/env/__stack_chk_fail.c3
-rw-r--r--src/env/clearenv.c1
-rw-r--r--src/env/putenv.c2
-rw-r--r--src/env/unsetenv.c1
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>