summaryrefslogtreecommitdiff
path: root/user/yubikey-personalization/we-are-linux.patch
blob: 0151c3b8954842d7ce19baf6eeb275fc5b47c9a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -Nurd yubikey-personalization-1.19.0/tests/test_args_to_config.c yubikey-personalization-1.19.0.new/tests/test_args_to_config.c
--- yubikey-personalization-1.19.0/tests/test_args_to_config.c	2018-04-24 03:28:46.000000000 -0500
+++ yubikey-personalization-1.19.0.new/tests/test_args_to_config.c	2018-08-01 09:24:48.170884044 -0500
@@ -132,7 +132,7 @@
 	ykp_errno = 0;
 
 /* getopt reinit (BSD systems use optreset and a different optind value) */
-#if defined(__GLIBC__) || defined(_WIN32)
+#if !defined(__BSD__) || defined(_WIN32)
 	optind = 0;
 #else
 	optind = optreset = 1;
@@ -329,7 +329,7 @@
 	ykp_errno = 0;
 
 /* getopt reinit (BSD systems use optreset and a different optind value) */
-#if defined(__GLIBC__) || defined(_WIN32)
+#if !defined(__BSD__) || defined(_WIN32)
 	optind = 0;
 #else
 	optind = optreset = 1;