[MPlayer-cvslog] r35049 - trunk/osdep/setenv.h

al subversion at mplayerhq.hu
Thu Jul 26 21:19:33 CEST 2012


Author: al
Date: Thu Jul 26 21:19:32 2012
New Revision: 35049

Log:
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 .

Modified:
   trunk/osdep/setenv.h

Modified: trunk/osdep/setenv.h
==============================================================================
--- trunk/osdep/setenv.h	Tue Jul 24 11:00:44 2012	(r35048)
+++ trunk/osdep/setenv.h	Thu Jul 26 21:19:32 2012	(r35049)
@@ -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 */


More information about the MPlayer-cvslog mailing list