summaryrefslogtreecommitdiff
path: root/security/pam_pwdfile/files/patch-pam__pwdfile.c
blob: 44954c122be0dd70200e431f7ed99c3ab338fcf7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- pam_pwdfile.c.orig	2025-04-02 18:36:58 UTC
+++ pam_pwdfile.c
@@ -42,9 +42,6 @@
 #define _GNU_SOURCE
 #include <crypt.h>
 #else
-#ifndef _XOPEN_SOURCE
-#define _XOPEN_SOURCE 700
-#endif
 #ifndef _BSD_SOURCE
 #define _BSD_SOURCE
 #endif
@@ -66,7 +63,8 @@
 
 #define PAM_SM_AUTH
 #include <security/pam_modules.h>
-#include <security/pam_ext.h>
+
+#define pam_syslog(H, C, ...)  syslog(C, __VA_ARGS__)
 
 static int lock_fd(int fd) {
     int delay;