[pkg-opensc-commit] [pkcs11-helper] 34/60: #include <unistd.h> on Unix avoids the warning: pkcs11h-core.c:620: warning: implicit declaration of function 'getpid'
Eric Dorland
eric at moszumanska.debian.org
Fri Jan 6 23:39:44 UTC 2017
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to tag pkcs11-helper-1.02
in repository pkcs11-helper.
commit 21ba66749d569a1bef521a29f2bd32d8ab9aefba
Author: ludovic.rousseau <ludovic.rousseau at 485eb718-1723-0410-b8a9-88cf21a28c35>
Date: Sat Dec 9 13:51:37 2006 +0000
#include <unistd.h> on Unix
avoids the warning:
pkcs11h-core.c:620: warning: implicit declaration of function 'getpid'
---
lib/_pkcs11h-core.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/_pkcs11h-core.h b/lib/_pkcs11h-core.h
index 1531e0b..06f17ad 100644
--- a/lib/_pkcs11h-core.h
+++ b/lib/_pkcs11h-core.h
@@ -58,6 +58,10 @@
#include <pkcs11-helper-1.0/pkcs11h-certificate.h>
#include "_pkcs11h-threading.h"
+#if !defined(_WIN32)
+#include <unistd.h>
+#endif
+
#define PKCS11H_INVALID_SLOT_ID ((CK_SLOT_ID)-1)
#define PKCS11H_INVALID_SESSION_HANDLE ((CK_SESSION_HANDLE)-1)
#define PKCS11H_INVALID_OBJECT_HANDLE ((CK_OBJECT_HANDLE)-1)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/pkcs11-helper.git
More information about the pkg-opensc-commit
mailing list