mirror of
https://github.com/mpv-player/mpv
synced 2025-01-24 19:37:30 +01:00
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:
parent
680eb1a1e4
commit
3819692fda
1
configure
vendored
1
configure
vendored
@ -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
|
||||
|
@ -5,6 +5,7 @@
|
||||
(see http://www.dtek.chalmers.se/~dvd/)
|
||||
*/
|
||||
|
||||
#define _XOPEN_SOURCE
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -1,3 +1,4 @@
|
||||
#define _XOPEN_SOURCE
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
Loading…
Reference in New Issue
Block a user