summaryrefslogtreecommitdiff
path: root/sys-auth/pam-pgsql/files/pam-pgsql-0.7.3.2-Fix-crypt-implicit-function-declaration.patch
blob: bf3604fd56708b347fafed633260b101a936433f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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>