diff options
Diffstat (limited to 'payloads/libpayload')
-rw-r--r-- | payloads/libpayload/include/stdlib.h | 2 | ||||
-rw-r--r-- | payloads/libpayload/libc/lib.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/payloads/libpayload/include/stdlib.h b/payloads/libpayload/include/stdlib.h index 52162fe74e..47b666a761 100644 --- a/payloads/libpayload/include/stdlib.h +++ b/payloads/libpayload/include/stdlib.h @@ -143,5 +143,5 @@ void exit(int status) __attribute__ ((noreturn)); /** @} */ void qsort(void *aa, size_t n, size_t es, int (*cmp)(const void *, const void *)); - +char *getenv(const char*); #endif diff --git a/payloads/libpayload/libc/lib.c b/payloads/libpayload/libc/lib.c index c8539cb59f..616a7c6ca7 100644 --- a/payloads/libpayload/libc/lib.c +++ b/payloads/libpayload/libc/lib.c @@ -120,3 +120,9 @@ void exit(int status) } int errno; + +char *getenv(const char *name) +{ + return NULL; +} + |