diff --git a/srcpkgs/libressl/patches/libressl-glibc.patch b/srcpkgs/libressl/patches/libressl-glibc.patch new file mode 100644 index 0000000000..349dc70b89 --- /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; + }