diff options
author | Ben Kibbey <bjk@luxsci.net> | 2018-09-14 14:53:00 -0700 |
---|---|---|
committer | Ben Kibbey <bjk@luxsci.net> | 2018-09-14 14:53:00 -0700 |
commit | afeae6496f51d28958fd92b04cc933ee6ceb5b61 (patch) | |
tree | 7eb3e8959acf248d1a4b6dba71c10a250e55693f | |
parent | b270f2ec21b67f5728edae4b2ddf6fe17a0fd25a (diff) | |
download | libassuan-afeae6496f51d28958fd92b04cc933ee6ceb5b61.tar.gz |
Fix OpenBSD build.
* configure.ac: Define HAVE_STRUCT_SOCKPEERCRED_PID when found.
--
Signed-off-by: Ben Kibbey <bjk@luxsci.net>
-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 |