diff options
author | Ferenc Wágner <wferi@niif.hu> | 2013-10-11 13:44:10 +0200 |
---|---|---|
committer | Ferenc Wágner <wferi@niif.hu> | 2014-03-01 17:40:34 +0100 |
commit | 76cf504d96ffa7532d732feceee333ac442f7d30 (patch) | |
tree | 7234a95d0b89d625776ff8f65fa03979f993b45c | |
parent | 205a7c2944860ae8f62639f065bf63823cb3bc20 (diff) | |
download | syslinux-76cf504d96ffa7532d732feceee333ac442f7d30.tar.gz syslinux-76cf504d96ffa7532d732feceee333ac442f7d30.tar.xz syslinux-76cf504d96ffa7532d732feceee333ac442f7d30.zip |
stdlib.h: provide a stub definition for getenv()
Which always returns NULL, representing an empty environment.
-rw-r--r-- | com32/include/stdlib.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/com32/include/stdlib.h b/com32/include/stdlib.h index 14412972..1d9f01bf 100644 --- a/com32/include/stdlib.h +++ b/com32/include/stdlib.h @@ -45,7 +45,12 @@ __extern long long strtoll(const char *, char **, int); __extern unsigned long strtoul(const char *, char **, int); __extern unsigned long long strtoull(const char *, char **, int); -__extern char *getenv(const char *); +static __inline__ char *getenv(const char *name) +{ + (void)name; + return NULL; +} + __extern int putenv(const char *); __extern int setenv(const char *, const char *, int); __extern int unsetenv(const char *); |