libressl: musl build patch from sabotage.
This commit is contained in:
parent
6a2974bd3c
commit
295e771315
1 changed files with 32 additions and 0 deletions
32
srcpkgs/libressl/patches/libressl-glibc.patch
Normal file
32
srcpkgs/libressl/patches/libressl-glibc.patch
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue