libpayload: Provide dummy getenv()
authorPatrick Georgi <patrick.georgi@secunet.com>
Tue, 12 Jul 2011 13:50:54 +0000 (15:50 +0200)
committerPatrick Georgi <patrick@georgi-clan.de>
Wed, 20 Jul 2011 08:02:19 +0000 (10:02 +0200)
Change-Id: I419fcb16e0b10dee9195072e0e6befa6c9e61a69
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
Reviewed-on: http://review.coreboot.org/105
Tested-by: build bot (Jenkins)
Reviewed-by: Frank Vibrans III <frank.vibrans@amd.com>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
payloads/libpayload/include/stdlib.h
payloads/libpayload/libc/lib.c

index 52162fe74eee3476a93b2d1acdfdcc5b6177706d..47b666a7612b378b63daee5da672f4921799d1c0 100644 (file)
@@ -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 *));
 /** @} */
 
 void qsort(void *aa, size_t n, size_t es, int (*cmp)(const void *, const void *));
-
+char *getenv(const char*);
 #endif
 #endif
index c8539cb59fc2aea4f57948fb550004e6faaabf1c..616a7c6ca7628e6a5218833513b9648b53117b61 100644 (file)
@@ -120,3 +120,9 @@ void exit(int status)
 }
 
 int errno;
 }
 
 int errno;
+
+char *getenv(const char *name)
+{
+       return NULL;
+}
+