about summary refs log tree commit diff
path: root/src/env/getenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/env/getenv.c')
-rw-r--r--src/env/getenv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/env/getenv.c b/src/env/getenv.c
index cf34672c..f2797798 100644
--- a/src/env/getenv.c
+++ b/src/env/getenv.c
@@ -1,9 +1,8 @@
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 #include "libc.h"
 
-char *__strchrnul(const char *, int);
-
 char *getenv(const char *name)
 {
 	size_t l = __strchrnul(name, '=') - name;