mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-26 04:59:30 +08: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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user