summaryrefslogtreecommitdiff
path: root/libpam
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2001-12-11 07:41:39 +0000
committerAndrew G. Morgan <morgan@kernel.org>2001-12-11 07:41:39 +0000
commit3d9d57f071a69c10b618270f50a36ff810725c94 (patch)
treef359a6009ee87b4850b85658e76b71767d33c0cb /libpam
parent2acda542874f720091f6bfcb7aad09e35a8b2375 (diff)
Relevant BUGIDs: 486063
Purpose of commit: compatibility Commit summary: --------------- A BSD fix from Dag-Erling Smørgrav and Anton Berezin. What was there before did not correctly deal with BSD dynamic linking.
Diffstat (limited to 'libpam')
-rw-r--r--libpam/pam_handlers.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libpam/pam_handlers.c b/libpam/pam_handlers.c
index d007ed98..62b7446c 100644
--- a/libpam/pam_handlers.c
+++ b/libpam/pam_handlers.c
@@ -13,6 +13,9 @@
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <fcntl.h>
+#include <unistd.h>
+
#ifdef PAM_DYNAMIC
# ifdef PAM_SHL
# include <dl.h>
@@ -20,8 +23,6 @@
# include <dlfcn.h>
# endif /* PAM_SHL */
#endif /* PAM_DYNAMIC */
-#include <fcntl.h>
-#include <unistd.h>
#include "pam_private.h"