[tac_plus] patch of tacacs+-F4.0.4.23 & tacacs+-F5.0.0a1 for Mac OS X 10.6 or higher

YJZ vollkommen at gmx.net
Sat Mar 3 06:33:24 UTC 2012


Hello Shrubbery Networks, 

Since Apple has switched back from /usr/include/pam (OS X 10.0 through 10.5) to using the same /usr/include/security like other UNICES on OS X 10.6 and up, tacacs+-F4.0.4.23 and tacacs+-F5.0.0a1 now need the following small patch in order to compile on the latest OS X releases (10.6, 10.7, and probably 10.8).

diff -rupN pwlib.c.orig pwlib.c > pwlib.c.diff

--- pwlib.c.orig	2012-01-23 16:05:22.000000000 -0800
+++ pwlib.c	2012-03-02 22:16:11.000000000 -0800
@@ -32,7 +32,11 @@
 
 #if HAVE_PAM
 # ifdef __APPLE__	/* MacOS X */
-#  include <pam/pam_appl.h>
+#  if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1060
+#   include <security/pam_appl.h>
+#  else
+#   include <pam/pam_appl.h>
+#  endif
 # else
 #  include <security/pam_appl.h>
 # endif



Best Regards,

YiJia Zhang
_/_/_/ mailto:vollkommen at gmx.net
-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!                                  
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a


More information about the tac_plus mailing list