diff --git a/test.c b/test.c index 01fe109..84adb63 100644 --- a/test.c +++ b/test.c @@ -30,7 +30,16 @@ #include #include +/* These #defines must be present according to PAM documentation. */ +#define PAM_SM_AUTH + +#ifdef HAVE_SECURITY_PAM_APPL_H #include +#endif +#ifdef HAVE_SECURITY_PAM_MODULES_H +#include +#endif + int main (int argc, char **argv)