]> granicus.if.org Git - graphviz/commitdiff
Replace _hdr_stat with HAVE_STAT_H
authorErwin Janssen <erwinjanssen@outlook.com>
Fri, 2 Jun 2017 23:07:50 +0000 (01:07 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Thu, 13 Jul 2017 10:52:45 +0000 (12:52 +0200)
The check for <stat.h> is already included in configure.ac, so
this could be used instead of the check in features/sfio.

lib/sfio/features/sfio
lib/sfio/sfhdr.h

index 85d473557c6ce82d1a1522a93e72d6497ab000dc..d6d87df4076ab40ea31cb80046374995379cbd30 100644 (file)
@@ -15,20 +15,6 @@ typ struct_stat64 compile{
        }
 }end
 
-hdr stat note{ stat() in default lib(s) }end link{
-       #if _STD_
-       #include        <stddef.h>
-       #else
-       #include        <sys/types.h>
-       #endif
-       #include        <time.h>
-       #include        <stat.h>
-       main()
-       {       struct stat     st;
-               fstat(0,&st);
-       }
-}end
-
 ##################################################
 # file control checks
 ##################################################
index 9d47edf98b91ac29ce549034a2b68df80aa2cb44..a80eaeebfea405fcfe60dab4f5821ae56aaaab04 100644 (file)
@@ -51,7 +51,7 @@ extern "C" {
 */
 #if defined(_SFBINARY_H)
 #undef  HAVE_SYS_ST
-#undef  _hdr_stat
+#undef  HAVE_STAT_H
 #undef  _lib_poll
 #undef  _stream_peek
 #undef  _socket_peek
@@ -69,7 +69,7 @@ extern "C" {
 #if HAVE_SYS_STAT_H
 #include       <sys/stat.h>
 #else
-#if _hdr_stat
+#if HAVE_STAT_H
 #include       <stat.h>
 #ifndef HAVE_SYS_STAT_H
 #define        HAVE_SYS_STAT_H 1