changeset 32211:6f9c18a79ddd

Fix compilation on Windows: MinGW unistd.h does not define NULL.
author reimar
date Sat, 18 Sep 2010 08:05:10 +0000
parents f6ff1c427ff3
children 56cbeca2a533
files configure
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Fri Sep 17 15:16:06 2010 +0000
+++ b/configure	Sat Sep 18 08:05:10 2010 +0000
@@ -3858,7 +3858,11 @@
 cat > $TMPC << EOF
 #define _XOPEN_SOURCE 600
 #include <unistd.h>
-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