From 1471012164ba8f26046d4b1ce5531a0d92805ef5 Mon Sep 17 00:00:00 2001
From: Dengke Du <dengke.du@windriver.com>
Date: Wed, 8 Feb 2017 16:21:16 +0800
Subject: [PATCH 4/5] sysconf01: Use _SC_2_C_VERSION conditionally

_SC_2_C_VERSION is not available on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Dengke Du <dengke.du@windriver.com>
---
 testcases/kernel/syscalls/sysconf/sysconf01.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/testcases/kernel/syscalls/sysconf/sysconf01.c b/testcases/kernel/syscalls/sysconf/sysconf01.c
index 583deef..de93695 100644
--- a/testcases/kernel/syscalls/sysconf/sysconf01.c
+++ b/testcases/kernel/syscalls/sysconf/sysconf01.c
@@ -103,7 +103,9 @@ int main(void)
 	test_sysconf(_SC_2_C_BIND);
 	test_sysconf(_SC_2_C_DEV);
 #ifdef _SC_2_C_VERSION
+#ifdef __GLIBC__
 	test_sysconf(_SC_2_C_VERSION);
+#endif
 #else
 	tst_resm(TCONF, "_SC_2_C_VERSION not defined");
 #endif
-- 
2.7.4

