* 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>
#include <errno.h>
#include <signal.h>
#include <limits.h>
+#include <unistd.h>
#include "libavformat/avformat.h"
#include "libavdevice/avdevice.h"
#include "libswscale/swscale.h"
#endif
#if defined(HAVE_TERMIOS_H)
-#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/time.h>
* utils.
*/
+/* needed for mkstemp() */
+#define _XOPEN_SOURCE 500
+
#include "libavutil/integer.h"
#include "libavutil/crc.h"
#include "avcodec.h"
#include "opt.h"
#include "imgconvert.h"
#include "audioconvert.h"
+#include <stdlib.h>
#include <stdarg.h>
#include <limits.h>
#include <float.h>
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+/* needed by inet_aton() */
+#define _SVID_SOURCE
+
#include "config.h"
#include "avformat.h"
#include <unistd.h>
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+/* needed for gethostname() */
+#define _XOPEN_SOURCE 500
+
#include "libavcodec/bitstream.h"
#include "avformat.h"
#include "mpegts.h"
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+/* needed by inet_aton() */
+#define _SVID_SOURCE
+
#include "libavutil/avstring.h"
#include "avformat.h"