changeset 28420:606c3c97229c

swab() needs _XOPEN_SOURCE to be defined. Fixes two implicit declaration warnings.
author reimar
date Tue, 03 Feb 2009 10:39:56 +0000
parents d4fbeeaa1c76
children 6284666d3794
files configure libmpcodecs/ad_hwac3.c libmpcodecs/ad_liba52.c
diffstat 3 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Feb 03 10:21:17 2009 +0000
+++ b/configure	Tue Feb 03 10:39:56 2009 +0000
@@ -3564,6 +3564,7 @@
 
 echocheck "swab()"
 cat > $TMPC << EOF
+#define _XOPEN_SOURCE
 #include <unistd.h>
 int main(void) { swab(0, 0, 0); return 0; }
 EOF
--- a/libmpcodecs/ad_hwac3.c	Tue Feb 03 10:21:17 2009 +0000
+++ b/libmpcodecs/ad_hwac3.c	Tue Feb 03 10:39:56 2009 +0000
@@ -5,6 +5,7 @@
    (see http://www.dtek.chalmers.se/~dvd/)
 */
 
+#define _XOPEN_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
--- a/libmpcodecs/ad_liba52.c	Tue Feb 03 10:21:17 2009 +0000
+++ b/libmpcodecs/ad_liba52.c	Tue Feb 03 10:39:56 2009 +0000
@@ -1,3 +1,4 @@
+#define _XOPEN_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>