[syslinux:master] stdlib.h: provide a stub definition for getenv( )
syslinux-bot for Ferenc Wágner
wferi at niif.hu
Sun Mar 2 13:48:15 PST 2014
Commit-ID: 76cf504d96ffa7532d732feceee333ac442f7d30
Gitweb: http://www.syslinux.org/commit/76cf504d96ffa7532d732feceee333ac442f7d30
Author: Ferenc Wágner <wferi at niif.hu>
AuthorDate: Fri, 11 Oct 2013 13:44:10 +0200
Committer: Ferenc Wágner <wferi at niif.hu>
CommitDate: Sat, 1 Mar 2014 17:40:34 +0100
stdlib.h: provide a stub definition for getenv()
Which always returns NULL, representing an empty environment.
---
com32/include/stdlib.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/com32/include/stdlib.h b/com32/include/stdlib.h
index 1441297..1d9f01b 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 *);
More information about the Syslinux-commits
mailing list