aboutsummaryrefslogtreecommitdiffstats
path: root/testing/snapper/musl-posix.patch
blob: 132d489c6db90d01d76fe1ed919dc09dd4113531 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/snapper/AppUtil.cc b/snapper/AppUtil.cc
index 052235d..ab81983 100644
--- a/snapper/AppUtil.cc
+++ b/snapper/AppUtil.cc
@@ -223,16 +223,10 @@
     string
     stringerror(int errnum)
     {
-#if (_POSIX_C_SOURCE >= 200112L) && ! _GNU_SOURCE
 	char buf1[100];
 	if (strerror_r(errnum, buf1, sizeof(buf1) - 1) == 0)
 	    return string(buf1);
 	return string("strerror failed");
-#else
-	char buf1[100];
-	const char* buf2 = strerror_r(errnum, buf1, sizeof(buf1) - 1);
-	return string(buf2);
-#endif
     }