File PyPAM-0.5.0-missing-headers.patch of Package PyPAM
diff -pNur PyPAM-0.5.0-orig/PAMmodule.c PyPAM-0.5.0/PAMmodule.c
--- PyPAM-0.5.0-orig/PAMmodule.c 2022-10-25 05:26:59.742214488 +0200
+++ PyPAM-0.5.0/PAMmodule.c 2022-10-25 05:28:11.505532609 +0200
@@ -11,9 +11,11 @@ static char revision[] = "$Id: PAMmodule
#include <security/pam_appl.h>
#include <security/pam_misc.h>
+#include <time.h>
#include <Python.h>
#include <stdio.h>
#include <dlfcn.h>
+#include <string.h>
#if PY_MAJOR_VERSION >= 3
#define IS_PY3K
diff -pNur PyPAM-0.5.0-orig/setup.py PyPAM-0.5.0/setup.py
--- PyPAM-0.5.0-orig/setup.py 2022-10-25 05:26:59.742214488 +0200
+++ PyPAM-0.5.0/setup.py 2022-10-25 05:45:26.737110647 +0200
@@ -15,7 +15,7 @@ setup(
'PAM',
['PAMmodule.c'],
libraries=['pam', 'pam_misc'],
- extra_compile_args = ['-std=c99'],
+ extra_compile_args = ['-std=c99', '-D_XOPEN_SOURCE=700'],
)
],
)