Commit 7246177d authored by Aurelien Jacobs's avatar Aurelien Jacobs

ensure we get explicit definition of various _XOPEN_SOURCE functions we use

Originally committed as revision 14766 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b5f46e93
...@@ -19,6 +19,9 @@ ...@@ -19,6 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
/* needed for usleep() */
#define _XOPEN_SOURCE 500
#include "config.h" #include "config.h"
#include <ctype.h> #include <ctype.h>
#include <string.h> #include <string.h>
...@@ -27,6 +30,7 @@ ...@@ -27,6 +30,7 @@
#include <errno.h> #include <errno.h>
#include <signal.h> #include <signal.h>
#include <limits.h> #include <limits.h>
#include <unistd.h>
#include "libavformat/avformat.h" #include "libavformat/avformat.h"
#include "libavdevice/avdevice.h" #include "libavdevice/avdevice.h"
#include "libswscale/swscale.h" #include "libswscale/swscale.h"
...@@ -45,7 +49,6 @@ ...@@ -45,7 +49,6 @@
#endif #endif
#if defined(HAVE_TERMIOS_H) #if defined(HAVE_TERMIOS_H)
#include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/time.h> #include <sys/time.h>
......
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
* utils. * utils.
*/ */
/* needed for mkstemp() */
#define _XOPEN_SOURCE 500
#include "libavutil/integer.h" #include "libavutil/integer.h"
#include "libavutil/crc.h" #include "libavutil/crc.h"
#include "avcodec.h" #include "avcodec.h"
...@@ -32,6 +35,7 @@ ...@@ -32,6 +35,7 @@
#include "opt.h" #include "opt.h"
#include "imgconvert.h" #include "imgconvert.h"
#include "audioconvert.h" #include "audioconvert.h"
#include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include <limits.h> #include <limits.h>
#include <float.h> #include <float.h>
......
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
* License along with FFmpeg; if not, write to the Free Software * License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
/* needed by inet_aton() */
#define _SVID_SOURCE
#include "config.h" #include "config.h"
#include "avformat.h" #include "avformat.h"
#include <unistd.h> #include <unistd.h>
......
...@@ -19,6 +19,9 @@ ...@@ -19,6 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
/* needed for gethostname() */
#define _XOPEN_SOURCE 500
#include "libavcodec/bitstream.h" #include "libavcodec/bitstream.h"
#include "avformat.h" #include "avformat.h"
#include "mpegts.h" #include "mpegts.h"
......
...@@ -19,6 +19,9 @@ ...@@ -19,6 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
/* needed by inet_aton() */
#define _SVID_SOURCE
#include "libavutil/avstring.h" #include "libavutil/avstring.h"
#include "avformat.h" #include "avformat.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment