Skip to content

Commit 9c35c0d

Browse files
committed
Add HAVE_GETPID to options.h if getpid detected, needed for apps to correctly detect size of WC_RNG struct
1 parent 74de689 commit 9c35c0d

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

configure.ac

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ fi
160160
#ifdef HAVE_STDLIB_H
161161
#include <stdlib.h>
162162
#endif
163+
#ifdef HAVE_UNISTD_H
164+
#include <unistd.h>
165+
#endif
163166
#ifdef HAVE_CTYPE_H
164167
#include <ctype.h>
165168
#endif
@@ -10469,6 +10472,12 @@ then
1046910472
AM_CFLAGS="$AM_CFLAGS -DHAVE___UINT128_T=1"
1047010473
fi
1047110474
10475+
# Add HAVE_GETPID to AM_CFLAGS for inclusion in options.h
10476+
if test "$ac_cv_func_getpid" = "yes"
10477+
then
10478+
AM_CFLAGS="$AM_CFLAGS -DHAVE_GETPID=1"
10479+
fi
10480+
1047210481
LIB_SOCKET_NSL
1047310482
AX_HARDEN_CC_COMPILER_FLAGS
1047410483

0 commit comments

Comments
 (0)