mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
From 4c227676bf627d8cc5213d1d6afb79fc763ba7bf Mon Sep 17 00:00:00 2001
|
|
From: begasus <begasus@gmail.com>
|
|
Date: Thu, 20 Sep 2018 11:50:07 +0200
|
|
Subject: add #define(__HAIKU__) to complete the test
|
|
|
|
|
|
diff --git a/tests/test_args_to_config.c b/tests/test_args_to_config.c
|
|
index d0bf261..1481f27 100644
|
|
--- a/tests/test_args_to_config.c
|
|
+++ b/tests/test_args_to_config.c
|
|
@@ -132,7 +132,7 @@ static int _test_config (YKP_CONFIG *cfg, YK_STATUS *st, int argc, char **argv)
|
|
ykp_errno = 0;
|
|
|
|
/* getopt reinit (BSD systems use optreset and a different optind value) */
|
|
-#if defined(__GLIBC__) || defined(_WIN32)
|
|
+#if defined(__GLIBC__) || defined(_WIN32) || defined(__HAIKU__)
|
|
optind = 0;
|
|
#else
|
|
optind = optreset = 1;
|
|
@@ -329,7 +329,7 @@ static void _test_non_config_args(void)
|
|
ykp_errno = 0;
|
|
|
|
/* getopt reinit (BSD systems use optreset and a different optind value) */
|
|
-#if defined(__GLIBC__) || defined(_WIN32)
|
|
+#if defined(__GLIBC__) || defined(_WIN32) || defined(__HAIKU__)
|
|
optind = 0;
|
|
#else
|
|
optind = optreset = 1;
|
|
--
|
|
2.19.0
|
|
|