[pkg-opensc-commit] [libp11] 208/239: atfork: include unistd for getpid() and check for __register_atfork

Eric Dorland eric at moszumanska.debian.org
Sat Oct 17 06:21:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository libp11.

commit eadf8181ac3a4b29ed787c81fa559fd9387412cc
Author: Nikos Mavrogiannopoulos <nmav at redhat.com>
Date:   Tue Aug 25 15:13:16 2015 +0200

    atfork: include unistd for getpid() and check for __register_atfork
---
 configure.ac | 1 +
 src/atfork.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/configure.ac b/configure.ac
index 7a0a2e7..7454e51 100644
--- a/configure.ac
+++ b/configure.ac
@@ -139,6 +139,7 @@ if test "${WIN32}" != "yes"; then
 		,
 		[AC_MSG_ERROR([libdl required])]
 	)
+	AC_CHECK_FUNCS([__register_atfork],,)
 fi
 
 PKG_CHECK_MODULES(
diff --git a/src/atfork.c b/src/atfork.c
index 4a57dac..fbc30c6 100644
--- a/src/atfork.c
+++ b/src/atfork.c
@@ -25,6 +25,7 @@
 #include <errno.h>
 #include <sys/stat.h>
 #include <sys/types.h>
+#include <unistd.h>
 #include <atfork.h>
 
 #ifdef __sun

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/libp11.git



More information about the pkg-opensc-commit mailing list