progname: Include <procinfo.h> if available

We need this header on AIX. Missed transplanting the code from the AIX
porting system.

Fixes: commit 9fa06763a1
This commit is contained in:
Guillem Jover 2023-04-22 20:23:08 +02:00
parent d08163b4fe
commit 8f998d1d20
2 changed files with 4 additions and 0 deletions

View File

@ -179,6 +179,7 @@ AC_CHECK_HEADERS([\
pwd.h \ pwd.h \
grp.h \ grp.h \
stdio_ext.h \ stdio_ext.h \
procinfo.h \
]) ])
# Checks for typedefs, structures, and compiler characteristics. # Checks for typedefs, structures, and compiler characteristics.

View File

@ -35,6 +35,9 @@
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#ifdef HAVE_PROCINFO_H
#include <procinfo.h>
#endif
#ifdef _WIN32 #ifdef _WIN32
#include <Windows.h> #include <Windows.h>
#include <shlwapi.h> #include <shlwapi.h>