[FFmpeg-devel] [PATCH] add _XOPEN_SOURCE definition to tools/trasher.c
Diego Biurrun
diego
Mon Mar 23 23:26:46 CET 2009
When compiling tools/trasher.c the following warnings appear:
tools/trasher.c: In function 'main':
tools/trasher.c:44: warning: implicit declaration of function 'srandom'
tools/trasher.c:51: warning: implicit declaration of function 'random'
According to
http://www.opengroup.org/onlinepubs/009695399/functions/srandom.html
(s)random is an XSI extension, so adding
#define _XOPEN_SOURCE 600
to the file seems to be the correct solution.
Diego
More information about the ffmpeg-devel
mailing list