mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Proper handling of getopt.h and PAM.
This commit is contained in:
parent
8a2b1f0c31
commit
a640e5a8e7
10
vfs/mcserv.c
10
vfs/mcserv.c
@ -55,7 +55,9 @@
|
||||
#include <sys/wait.h>
|
||||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
#include <getopt.h>
|
||||
#ifdef HAVE_GETOPT_H
|
||||
# include <getopt.h>
|
||||
#endif
|
||||
|
||||
/* Network include files */
|
||||
#include <sys/socket.h>
|
||||
@ -72,6 +74,12 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_PAM)
|
||||
# if !defined(HAVE_SECURITY_PAM_MISC_H)
|
||||
# undef HAVE_PAM
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Authentication include files */
|
||||
#include <pwd.h>
|
||||
#ifdef HAVE_PAM
|
||||
|
Loading…
Reference in New Issue
Block a user