Added
Link Here
|
1 |
--- source/nsswitch/pam_winbind.h.orig Tue Apr 1 12:57:33 2003 |
2 |
+++ source/nsswitch/pam_winbind.h Tue Apr 1 12:57:41 2003 |
3 |
@@ -25,7 +25,15 @@ |
4 |
#define PAM_SM_ACCOUNT |
5 |
#define PAM_SM_PASSWORD |
6 |
|
7 |
-#if defined(SUNOS5) || defined(SUNOS4) || defined(HPUX) |
8 |
+#if (__FreeBSD__ == 0) /* 1.0 did not define __FreeBSD__ */ |
9 |
+#define __FreeBSD_version 199401 |
10 |
+#elsif __FreeBSD__ == 1 /* 1.1 defined it to be 1 */ |
11 |
+#define __FreeBSD_version 199405 |
12 |
+#else /* 2.0 and higher define it to be 2 */ |
13 |
+#include <osreldate.h> /* and this works */ |
14 |
+#endif |
15 |
+ |
16 |
+#if defined(SUNOS5) || defined(SUNOS4) || defined(HPUX) || (defined (__FreeBSD_version) && (__FreeBSD_version > 500030)) |
17 |
|
18 |
/* Solaris always uses dynamic pam modules */ |
19 |
#define PAM_EXTERN extern |