From 8f998d1d204c7a6218b49b021b74e6ac2e8fc642 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sat, 22 Apr 2023 20:23:08 +0200 Subject: [PATCH] progname: Include if available We need this header on AIX. Missed transplanting the code from the AIX porting system. Fixes: commit 9fa06763a1afe0946a3a20e5bbdba72885cbade5 --- configure.ac | 1 + src/progname.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index db33043..f0762f6 100644 --- a/configure.ac +++ b/configure.ac @@ -179,6 +179,7 @@ AC_CHECK_HEADERS([\ pwd.h \ grp.h \ stdio_ext.h \ + procinfo.h \ ]) # Checks for typedefs, structures, and compiler characteristics. diff --git a/src/progname.c b/src/progname.c index 56d91ec..83e8652 100644 --- a/src/progname.c +++ b/src/progname.c @@ -35,6 +35,9 @@ #include #include #include +#ifdef HAVE_PROCINFO_H +#include +#endif #ifdef _WIN32 #include #include