[pkg-opensc-commit] [pkcs11-helper] 34/253: #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:01 UTC 2017
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository pkcs11-helper.
commit 5b94ceeb79c92c39f4c87f55cb9a7acf6f1fb447
Author: Ludovic Rousseau <ludovic.rousseau+github at gmail.com>
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