From 295e771315d968bfd8ec518389d5e05b9370ed76 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 14 Jul 2014 10:37:23 +0200 Subject: [PATCH] libressl: musl build patch from sabotage. --- srcpkgs/libressl/patches/libressl-glibc.patch | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 srcpkgs/libressl/patches/libressl-glibc.patch diff --git a/srcpkgs/libressl/patches/libressl-glibc.patch b/srcpkgs/libressl/patches/libressl-glibc.patch new file mode 100644 index 00000000000..349dc70b898 --- /dev/null +++ b/srcpkgs/libressl/patches/libressl-glibc.patch @@ -0,0 +1,32 @@ +--- crypto/compat/issetugid_linux.c ++++ crypto/compat/issetugid_linux.c +@@ -4,7 +4,9 @@ + */ + + #include ++#ifdef __GLIBC__ + #include ++#endif + #include + #include + #include +@@ -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; + }