summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
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 <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