The check for <stat.h> is already included in configure.ac, so
this could be used instead of the check in features/sfio.
}
}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
##################################################
*/
#if defined(_SFBINARY_H)
#undef HAVE_SYS_ST
-#undef _hdr_stat
+#undef HAVE_STAT_H
#undef _lib_poll
#undef _stream_peek
#undef _socket_peek
#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