aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2003-04-21 07:13:05 +0800
committernectar <nectar@FreeBSD.org>2003-04-21 07:13:05 +0800
commit88130c343d1cb8eac4887d5513ba25d667aa3c09 (patch)
tree562e7a5592fb0d055ec80069ab6fbc34ed648114 /net
parent60c308374eeb238772d17897af4328a076320a6a (diff)
downloadfreebsd-ports-gnome-88130c343d1cb8eac4887d5513ba25d667aa3c09.tar.gz
freebsd-ports-gnome-88130c343d1cb8eac4887d5513ba25d667aa3c09.tar.zst
freebsd-ports-gnome-88130c343d1cb8eac4887d5513ba25d667aa3c09.zip
Unbreak for FreeBSD 5.x prior to addition of NSS module support
(500000 <= __FreeBSD_version < 500112). Reported by: dannyboy
Diffstat (limited to 'net')
-rw-r--r--net/samba/files/winbind_nss_bsd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/samba/files/winbind_nss_bsd.c b/net/samba/files/winbind_nss_bsd.c
index bc830a8f5ce2..2d93584fc535 100644
--- a/net/samba/files/winbind_nss_bsd.c
+++ b/net/samba/files/winbind_nss_bsd.c
@@ -1,4 +1,5 @@
#include <sys/param.h>
+#if __FreeBSD_version >= 500112
#include <pwd.h>
#include <grp.h>
#include <nss.h>
@@ -57,3 +58,4 @@ nss_module_register(const char *source, unsigned int *mtabsize,
*unreg = NULL;
return (methods);
}
+#endif