summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-09-02 00:09:31 +0000
committerTim Potter <tpot@samba.org>2003-09-02 00:09:31 +0000
commitea7b4b6c320d2c5aaaa9d67ba6794bb566cb5c56 (patch)
tree8ada9954bdce647316195bed336ca761a72cc1a3
parent9b276fc77fc30638263be4593967da72f6f93c75 (diff)
downloadsamba-ea7b4b6c320d2c5aaaa9d67ba6794bb566cb5c56.tar.gz
samba-ea7b4b6c320d2c5aaaa9d67ba6794bb566cb5c56.tar.bz2
samba-ea7b4b6c320d2c5aaaa9d67ba6794bb566cb5c56.zip
Fix for bug 261. Create a configure #define for FreeBSD and a check in
nsswitch/pam_winbind.h so we can compile properly on this platform. (This used to be commit 75411005fcab7ecf31940c5f7b87fd407166f98a)
-rw-r--r--source3/configure.in6
-rw-r--r--source3/nsswitch/pam_winbind.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 9998d3a235..3f9510920d 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -399,6 +399,10 @@ case "$host_os" in
*irix*)
AC_DEFINE(SYSV, 1, [Whether to enable System V compatibility])
;;
+ *freebsd*)
+ AC_DEFINE(FREEBSD, 1, [Whether the host os is FreeBSD])
+ ;;
+
#
# VOS may need to have POSIX support and System V compatibility enabled.
#
@@ -417,7 +421,7 @@ case "$host_os" in
*)
CPPFLAGS="$CPPFLAGS -D_SYSV"
AC_DEFINE(_SYSV, 1, [Whether to enable System V compatibility])
- esac
+ esac
;;
#
# Tests needed for SINIX large file support.
diff --git a/source3/nsswitch/pam_winbind.h b/source3/nsswitch/pam_winbind.h
index fae635d806..865bf7513e 100644
--- a/source3/nsswitch/pam_winbind.h
+++ b/source3/nsswitch/pam_winbind.h
@@ -25,7 +25,7 @@
#define PAM_SM_ACCOUNT
#define PAM_SM_PASSWORD
-#if defined(SUNOS5) || defined(SUNOS4) || defined(HPUX)
+#if defined(SUNOS5) || defined(SUNOS4) || defined(HPUX) || defined(FREEBSD)
/* Solaris always uses dynamic pam modules */
#define PAM_EXTERN extern