# HG changeset patch # User al # Date 1343330372 0 # Node ID f0192ade915627704f4f1db2e8679296057af9b2 # Parent 9c4b0bb721978f5098f54da0b6f1dd529e2328f6 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 . diff -r 9c4b0bb72197 -r f0192ade9156 osdep/setenv.h --- 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 #endif #endif /* MPLAYER_SETENV_H */