libressl: musl build patch from sabotage.

This commit is contained in:
Juan RP 2014-07-14 10:37:23 +02:00
parent 6a2974bd3c
commit 295e771315

View file

@ -0,0 +1,32 @@
--- crypto/compat/issetugid_linux.c
+++ crypto/compat/issetugid_linux.c
@@ -4,7 +4,9 @@
*/
#include <errno.h>
+#ifdef __GLIBC__
#include <gnu/libc-version.h>
+#endif
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
@@ -33,15 +35,19 @@
* info: http://lwn.net/Articles/519085/
*
*/
+#ifdef __GLIBC__
const char *glcv = gnu_get_libc_version();
if (strverscmp(glcv, "2.19") >= 0) {
+#endif
errno = 0;
if (getauxval(AT_SECURE) == 0) {
if (errno != ENOENT) {
return 0;
}
}
+#ifdef __GLIBC__
}
+#endif
#endif
return 1;
}