[PATCH] Fix PAM include dirs: Fixes `pam.c:7:10: fatal error: pam_appl.h: No...
a getty/login/xinit combination
Brought to you by:
msharov
Ahoj,
I want to compile this on Artix GNU/Linux with PAM version 1.7.2.
Compilation fails with
Compiling loginx.c ...
Compiling pam.c ...
Compiling uacct.c ...
Compiling ui.c ...
pam.c:7:10: fatal error: pam_appl.h: No such file or directory
7 | #include <pam_appl.h>
| ^~~~~~~~~~~~
compilation terminated.
According to https://man.archlinux.org/man/pam.3.en, I think you should use #include <security/pam_appl.h> instead.
Attached file fix_pam_include_dir.patch fixes the build error.
Regards!
Patch accepted. Commit 8a821b25c65c74e57af2f5a0b4df2e5cf17d0771.