]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
p11tool: use Sleep() in windows
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 11 Dec 2014 18:03:28 +0000 (19:03 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 11 Dec 2014 18:03:28 +0000 (19:03 +0100)
src/pkcs11.c

index 0b57aa3791c9ec2c06967d63c0533cb6a5c82236..e6cb6777782e74535ddfcd678d1204b9e771dadd 100644 (file)
 #include <stdint.h>
 #include <common.h>
 
+#ifdef _WIN32
+# define sleep(x) Sleep(x*1000)
+#endif
+
 static
 char *get_single_token_url(common_info_st * info);