]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
progname: Include <procinfo.h> if available
authorGuillem Jover <guillem@hadrons.org>
Sat, 22 Apr 2023 18:23:08 +0000 (20:23 +0200)
committerGuillem Jover <guillem@hadrons.org>
Sat, 22 Apr 2023 20:42:30 +0000 (22:42 +0200)
We need this header on AIX. Missed transplanting the code from the AIX
porting system.

Fixes: commit 9fa06763a1afe0946a3a20e5bbdba72885cbade5
configure.ac
src/progname.c

index db3304344a2b157604e0da82153e650488819678..f0762f68074605acf486c0bd853eaf5802e21069 100644 (file)
@@ -179,6 +179,7 @@ AC_CHECK_HEADERS([\
   pwd.h \
   grp.h \
   stdio_ext.h \
+  procinfo.h \
 ])
 
 # Checks for typedefs, structures, and compiler characteristics.
index 56d91eca5127ebe3edd8c7e60db8a9ab3bc0d649..83e865286f704cdf176cffd0611852b9f5f606c5 100644 (file)
@@ -35,6 +35,9 @@
 #include <errno.h>
 #include <string.h>
 #include <stdlib.h>
+#ifdef HAVE_PROCINFO_H
+#include <procinfo.h>
+#endif
 #ifdef _WIN32
 #include <Windows.h>
 #include <shlwapi.h>