]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Only use <stdio_ext.h> if present
authorGuillem Jover <guillem@hadrons.org>
Sat, 1 Apr 2023 10:46:49 +0000 (12:46 +0200)
committerGuillem Jover <guillem@hadrons.org>
Mon, 17 Apr 2023 02:12:42 +0000 (04:12 +0200)
configure.ac
src/fpurge.c

index 4a3c8b00cc3e351c847bc4687cdfcc5d97448d02..7588a3b75b00c58767d7b9c7d4e827eb5c471e45 100644 (file)
@@ -173,6 +173,7 @@ AC_CHECK_HEADERS([\
   dirent.h \
   pwd.h \
   grp.h \
+  stdio_ext.h \
 ])
 
 # Checks for typedefs, structures, and compiler characteristics.
index 350f364c0fc8e4ca214f8431753f60434ba06954..4a20c5185fc10bca1ce85819f3d877b00c5d32c5 100644 (file)
@@ -26,7 +26,9 @@
 
 #include <errno.h>
 #include <stdio.h>
+#if HAVE_STDIO_EXT_H
 #include <stdio_ext.h>
+#endif
 
 #ifdef HAVE___FPURGE
 int