From ea7b4b6c320d2c5aaaa9d67ba6794bb566cb5c56 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 2 Sep 2003 00:09:31 +0000 Subject: 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) --- source3/configure.in | 6 +++++- source3/nsswitch/pam_winbind.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'source3') 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 -- cgit