diff options
author | Ben Kibbey <[email protected]> | 2018-09-14 21:53:00 +0000 |
---|---|---|
committer | Ben Kibbey <[email protected]> | 2018-09-14 21:53:00 +0000 |
commit | afeae6496f51d28958fd92b04cc933ee6ceb5b61 (patch) | |
tree | 7eb3e8959acf248d1a4b6dba71c10a250e55693f | |
parent | tests: Exclude tests for Windows build. (diff) | |
download | libassuan-afeae6496f51d28958fd92b04cc933ee6ceb5b61.tar.gz libassuan-afeae6496f51d28958fd92b04cc933ee6ceb5b61.zip |
Fix OpenBSD build.
* configure.ac: Define HAVE_STRUCT_SOCKPEERCRED_PID when found.
--
Signed-off-by: Ben Kibbey <[email protected]>
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index d37f07f..dad379a 100644 --- a/configure.ac +++ b/configure.ac @@ -423,7 +423,10 @@ AC_REPLACE_FUNCS(setenv) # # Check for the getsockopt SO_PEERCRED, etc. # -AC_CHECK_MEMBER(struct sockpeercred.pid, [], [], [#include <sys/types.h> +AC_CHECK_MEMBER(struct sockpeercred.pid, + [AC_DEFINE(HAVE_STRUCT_SOCKPEERCRED_PID, 1, + Define if struct sockpeercred contains the pid member.)], + [], [#include <sys/types.h> #include <sys/socket.h> ]) # (Open)Solaris |