mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Fix building with Winbind under 5.0.
PR: ports/50519 Submitted by: Sergey A.Osokin <osa@FreeBSD.org.ru> Approved by: maintainer
This commit is contained in:
parent
8773f94b67
commit
b8cf954390
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78047
2 changed files with 20 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= samba
|
||||
PORTVERSION= 2.2.8
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://us3.samba.org/samba/ftp/%SUBDIR%/ \
|
||||
http://us4.samba.org/samba/ftp/%SUBDIR%/ \
|
||||
|
|
19
net/samba/files/patch-source::nsswitch::pam_winbind.h
Normal file
19
net/samba/files/patch-source::nsswitch::pam_winbind.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- source/nsswitch/pam_winbind.h.orig Tue Apr 1 12:57:33 2003
|
||||
+++ source/nsswitch/pam_winbind.h Tue Apr 1 12:57:41 2003
|
||||
@@ -25,7 +25,15 @@
|
||||
#define PAM_SM_ACCOUNT
|
||||
#define PAM_SM_PASSWORD
|
||||
|
||||
-#if defined(SUNOS5) || defined(SUNOS4) || defined(HPUX)
|
||||
+#if (__FreeBSD__ == 0) /* 1.0 did not define __FreeBSD__ */
|
||||
+#define __FreeBSD_version 199401
|
||||
+#elsif __FreeBSD__ == 1 /* 1.1 defined it to be 1 */
|
||||
+#define __FreeBSD_version 199405
|
||||
+#else /* 2.0 and higher define it to be 2 */
|
||||
+#include <osreldate.h> /* and this works */
|
||||
+#endif
|
||||
+
|
||||
+#if defined(SUNOS5) || defined(SUNOS4) || defined(HPUX) || (defined (__FreeBSD_version) && (__FreeBSD_version > 500030))
|
||||
|
||||
/* Solaris always uses dynamic pam modules */
|
||||
#define PAM_EXTERN extern
|
Loading…
Add table
Reference in a new issue