swab() needs _XOPEN_SOURCE to be defined.

Fixes two implicit declaration warnings.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28455 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2009-02-03 10:39:56 +00:00
parent 680eb1a1e4
commit 3819692fda
3 changed files with 3 additions and 0 deletions

1
configure vendored
View File

@ -3564,6 +3564,7 @@ echores "$_vsscanf"
echocheck "swab()"
cat > $TMPC << EOF
#define _XOPEN_SOURCE
#include <unistd.h>
int main(void) { swab(0, 0, 0); return 0; }
EOF

View File

@ -5,6 +5,7 @@
(see http://www.dtek.chalmers.se/~dvd/)
*/
#define _XOPEN_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -1,3 +1,4 @@
#define _XOPEN_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>