diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-14 22:01:59 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-14 22:01:59 +0000 |
commit | 7246177d806d607c4a31fd59ef355f0f25c7ab36 (patch) | |
tree | 0fa2407ea030bf29795e346ed33306e2ea0a70e9 /ffmpeg.c | |
parent | b5f46e93404de4a81d6c5253d6ebed2410e6a7d6 (diff) | |
download | ffmpeg-7246177d806d607c4a31fd59ef355f0f25c7ab36.tar.gz |
ensure we get explicit definition of various _XOPEN_SOURCE functions we use
Originally committed as revision 14766 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -19,6 +19,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +/* needed for usleep() */ +#define _XOPEN_SOURCE 500 + #include "config.h" #include <ctype.h> #include <string.h> @@ -27,6 +30,7 @@ #include <errno.h> #include <signal.h> #include <limits.h> +#include <unistd.h> #include "libavformat/avformat.h" #include "libavdevice/avdevice.h" #include "libswscale/swscale.h" @@ -45,7 +49,6 @@ #endif #if defined(HAVE_TERMIOS_H) -#include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> #include <sys/time.h> |