diff options
author | 2022-10-03 00:04:46 +0100 | |
---|---|---|
committer | 2022-10-03 01:38:09 +0100 | |
commit | 5bfa0c9d170e14d5dfa9a174298561432c96ed20 (patch) | |
tree | e2b0aec2e4b195ab385bd52464fd2379dfc25fb6 /sys-auth/pam-pgsql/files/pam-pgsql-0.7.3.2-Fix-crypt-implicit-function-declaration.patch | |
parent | dev-util/global: fix build with Clang 16 (diff) | |
download | gentoo-5bfa0c9d170e14d5dfa9a174298561432c96ed20.tar.gz gentoo-5bfa0c9d170e14d5dfa9a174298561432c96ed20.tar.bz2 gentoo-5bfa0c9d170e14d5dfa9a174298561432c96ed20.zip |
sys-auth/pam-pgsql: fix build with Clang 16
Closes: https://bugs.gentoo.org/871492
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-auth/pam-pgsql/files/pam-pgsql-0.7.3.2-Fix-crypt-implicit-function-declaration.patch')
-rw-r--r-- | sys-auth/pam-pgsql/files/pam-pgsql-0.7.3.2-Fix-crypt-implicit-function-declaration.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sys-auth/pam-pgsql/files/pam-pgsql-0.7.3.2-Fix-crypt-implicit-function-declaration.patch b/sys-auth/pam-pgsql/files/pam-pgsql-0.7.3.2-Fix-crypt-implicit-function-declaration.patch new file mode 100644 index 000000000000..bf3604fd5670 --- /dev/null +++ b/sys-auth/pam-pgsql/files/pam-pgsql-0.7.3.2-Fix-crypt-implicit-function-declaration.patch @@ -0,0 +1,18 @@ +From: Sam James <sam@gentoo.org> +Date: Sun, 2 Oct 2022 23:55:21 +0100 +Subject: [PATCH] Fix crypt() implicit function declaration + +crypt() is POSIX and setting _XOPEN_SOURCE makes glibc inhibit +defining it w/o _DEFAULT_SOURCE. + +Bug: https://bugs.gentoo.org/871492 +--- a/src/backend_pgsql.c ++++ b/src/backend_pgsql.c +@@ -8,7 +8,6 @@ + * William Grzybowski <william@agencialivre.com.br> + */ + +-#define _XOPEN_SOURCE 500 + #include <stdio.h> + #include <stdlib.h> + #include <stdarg.h> |