changeset 34955:f0192ade9156

osdep/setenv: Make sure we have a prototype for setenv Include the stdlib.h header if we detected setenv is available from libc, because we cannot rely that the file using the setenv function also includes stdlib.h .
author al
date Thu, 26 Jul 2012 19:19:32 +0000
parents 9c4b0bb72197
children 69cc06c49125
files osdep/setenv.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/osdep/setenv.h	Tue Jul 24 09:00:44 2012 +0000
+++ b/osdep/setenv.h	Thu Jul 26 19:19:32 2012 +0000
@@ -23,6 +23,8 @@
 
 #if !HAVE_SETENV
 int setenv(const char *name, const char *val, int overwrite);
+#else
+#include <stdlib.h>
 #endif
 
 #endif /* MPLAYER_SETENV_H */