[Darshan-commits] [Git][darshan/darshan][dev-fscanf-redefined] need gnu_source for config check

Shane Snyder xgitlab at cels.anl.gov
Thu Feb 13 18:00:51 CST 2020



Shane Snyder pushed to branch dev-fscanf-redefined at darshan / darshan


Commits:
82eb9e9e by Shane Snyder at 2020-02-14T00:00:35Z
need gnu_source for config check

- - - - -


2 changed files:

- darshan-runtime/configure
- darshan-runtime/configure.in


Changes:

=====================================
darshan-runtime/configure
=====================================
@@ -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);}


=====================================
darshan-runtime/configure.in
=====================================
@@ -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);}



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/82eb9e9e46b8226371afceb5b675482021c57525

-- 
View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/82eb9e9e46b8226371afceb5b675482021c57525
You're receiving this email because of your account on xgitlab.cels.anl.gov.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20200213/70363711/attachment.html>


More information about the Darshan-commits mailing list