Commit 82eb9e9e authored by Shane Snyder's avatar Shane Snyder
Browse files

need gnu_source for config check

parent bb2909d1
......@@ -4837,6 +4837,7 @@ $as_echo_n "checking for fscanf redirect... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#define _GNU_SOURCE
#include <stdio.h>
int fscanf(FILE *stream, const char *format, ...) {return(0);}
int __isoc99_fscanf(FILE *stream, const char *format, ...) {return(0);}
......
......@@ -484,6 +484,7 @@ AS_IF([$CC -show foo.c -o foo >& /dev/null],
AC_MSG_CHECKING(for fscanf redirect)
AC_TRY_COMPILE(
[
#define _GNU_SOURCE
#include <stdio.h>
int fscanf(FILE *stream, const char *format, ...) {return(0);}
int __isoc99_fscanf(FILE *stream, const char *format, ...) {return(0);}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment