changeset 3722:68749aaea50f libavformat

ensure we get explicit definition of various _XOPEN_SOURCE functions we use
author aurel
date Thu, 14 Aug 2008 22:01:59 +0000
parents caecb9f780a1
children 81726233f9b3
files os_support.c rtpdec.c rtsp.c
diffstat 3 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/os_support.c	Thu Aug 14 21:48:02 2008 +0000
+++ b/os_support.c	Thu Aug 14 22:01:59 2008 +0000
@@ -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>
--- a/rtpdec.c	Thu Aug 14 21:48:02 2008 +0000
+++ b/rtpdec.c	Thu Aug 14 22:01:59 2008 +0000
@@ -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"
--- a/rtsp.c	Thu Aug 14 21:48:02 2008 +0000
+++ b/rtsp.c	Thu Aug 14 22:01:59 2008 +0000
@@ -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"