aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2008-08-14 22:01:59 +0000
committerAurelien Jacobs <aurel@gnuage.org>2008-08-14 22:01:59 +0000
commit7246177d806d607c4a31fd59ef355f0f25c7ab36 (patch)
tree0fa2407ea030bf29795e346ed33306e2ea0a70e9 /libavformat
parentb5f46e93404de4a81d6c5253d6ebed2410e6a7d6 (diff)
downloadffmpeg-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 'libavformat')
-rw-r--r--libavformat/os_support.c4
-rw-r--r--libavformat/rtpdec.c3
-rw-r--r--libavformat/rtsp.c3
3 files changed, 10 insertions, 0 deletions
diff --git a/libavformat/os_support.c b/libavformat/os_support.c
index cc109d5967..3357595590 100644
--- a/libavformat/os_support.c
+++ b/libavformat/os_support.c
@@ -19,6 +19,10 @@
* 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>
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index e469a597c3..3500cad717 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -19,6 +19,9 @@
* 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"
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index d1f454da16..a3af365cae 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -19,6 +19,9 @@
* 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"