From 3e40d5f9aa8ca0f02808987529fd6e11111550e2 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 18 Sep 2010 08:05:10 +0000 Subject: configure: Fix compilation on Windows: MinGW unistd.h does not define NULL git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32295 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index b68bbd8cf0..fbfb85cf76 100755 --- a/configure +++ b/configure @@ -3603,7 +3603,11 @@ echocheck "swab()" cat > $TMPC << EOF #define _XOPEN_SOURCE 600 #include -int main(void) { swab(NULL, NULL, 0); return 0; } +int main(void) { + int a = 0, b = 0; + swab(&a, &b, 0); + return 0; +} EOF _swab=no cc_check && _swab=yes -- cgit v1.2.3