diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2018-05-03 18:23:08 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2018-05-03 18:25:26 +0000 |
commit | f8369be0c2fb7941156cf6f5a1143c5f91c5eb1a (patch) | |
tree | 8a0784e2007c551d83b01ee34e5a38ef059f84a8 /testing/snapper/musl-posix.patch | |
parent | 45b5690ccb0ec88c2742a5b3078b60655923d268 (diff) | |
download | aports-f8369be0c2fb7941156cf6f5a1143c5f91c5eb1a.tar.bz2 aports-f8369be0c2fb7941156cf6f5a1143c5f91c5eb1a.tar.xz |
testing/snapper: new aport
Diffstat (limited to 'testing/snapper/musl-posix.patch')
-rw-r--r-- | testing/snapper/musl-posix.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/snapper/musl-posix.patch b/testing/snapper/musl-posix.patch new file mode 100644 index 0000000000..248ea74374 --- /dev/null +++ b/testing/snapper/musl-posix.patch @@ -0,0 +1,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 @@ namespace snapper + string + stringerror(int errnum) + { +-#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE + char buf1[100]; + if (strerror_r(errno, buf1, sizeof(buf1)-1) == 0) + return string(buf1); + return string("strerror failed"); +-#else +- char buf1[100]; +- const char* buf2 = strerror_r(errno, buf1, sizeof(buf1)-1); +- return string(buf2); +-#endif + } + + |