summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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