Fix for bug 261. Create a configure #define for FreeBSD and a check in
authorTim Potter <tpot@samba.org>
Tue, 2 Sep 2003 00:09:31 +0000 (00:09 +0000)
committerTim Potter <tpot@samba.org>
Tue, 2 Sep 2003 00:09:31 +0000 (00:09 +0000)
nsswitch/pam_winbind.h so we can compile properly on this platform.
(This used to be commit 75411005fcab7ecf31940c5f7b87fd407166f98a)

source3/configure.in
source3/nsswitch/pam_winbind.h

index 9998d3a2359f7655b8cc5fd861d241178b058e33..3f9510920dd2c314f56f73506d34418c308a24af 100644 (file)
@@ -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.
index fae635d8067fde692d967a415c1db1d4056cf08a..865bf7513ebe69ec8f1e1af47512100c8f2e4199 100644 (file)
@@ -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