[pkg-opensc-commit] [opensc] 61/295: pkcs11-tool: for WIN32 define STDOUT_FILENO

Eric Dorland eric at moszumanska.debian.org
Sat Jun 24 21:11:16 UTC 2017


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

eric pushed a commit to branch master
in repository opensc.

commit 64ba32f2c6d5acbb64dbf6434a4a39ce5ced5bb8
Author: Viktor Tarasov <viktor.tarasov at gmail.com>
Date:   Tue Aug 16 10:33:05 2016 +0200

    pkcs11-tool: for WIN32 define STDOUT_FILENO
    
    fix bug introduced in 6cd28cfc7c5d9aa2ace94d60549f58f5cd3c4a49
---
 src/tools/pkcs11-tool.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/tools/pkcs11-tool.c b/src/tools/pkcs11-tool.c
index 6bd885b..dd27eae 100644
--- a/src/tools/pkcs11-tool.c
+++ b/src/tools/pkcs11-tool.c
@@ -60,6 +60,12 @@
 #include "common/compat_strlcpy.h"
 #include "util.h"
 
+#ifdef _WIN32
+#ifndef STDOUT_FILENO
+#define STDOUT_FILENO 1
+#endif
+#endif
+
 extern void *C_LoadModule(const char *name, CK_FUNCTION_LIST_PTR_PTR);
 extern CK_RV C_UnloadModule(void *module);
 

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



More information about the pkg-opensc-commit mailing list