+2005-03-09 Daniel P. Ottavio <dottavio@ic.sunysb.edu>
+
+ * include/am_defs.h : Merged a diff from 6.1 branch that addresses a
+ problem with GROUP_OBJ on Solaris 10:
+
+ Solaris 10 (build 72) defines GROUP_OBJ in <sys/acl.h>, which is included
+ in many other header files. <rpcsvc/nis.h> uses GROUP_OBJ inside enum
+ zotypes. So if you're unlucky enough to include both headers, you get a
+ compile error because the two symbols conflict.
+
+ * m4/macros/check_nfs_prot_headers.m4 : Fix to allow Solaris 10 to pick
+ up the right nfs header files.
+
2005-03-02 Daniel P. Ottavio <dottavio@ic.sunysb.edu>
* AUTHORS: add Dan Ottavio.
*
* %W% (Berkeley) %G%
*
- * $Id: am_defs.h,v 1.15.2.19 2005/01/16 23:56:32 ezk Exp $
+ * $Id: am_defs.h,v 1.15.2.20 2005/03/11 18:48:21 ottavio Exp $
*
*/
* Actions to take if <rpcsvc/nis.h> exists.
*/
#ifdef HAVE_RPCSVC_NIS_H
+/*
+ * Solaris 10 (build 72) defines GROUP_OBJ in <sys/acl.h>, which is included
+ * in many other header files. <rpcsvc/nis.h> uses GROUP_OBJ inside enum
+ * zotypes. So if you're unlucky enough to include both headers, you get a
+ * compile error because the two symbols conflict.
+ *
+ * Temp hack: undefine acl.h's GROUP_OBJ because it's not needed for
+ * am-utils.
+ */
+# ifdef GROUP_OBJ
+# undef GROUP_OBJ
+# endif /* GROUP_OBJ */
# include <rpcsvc/nis.h>
#endif /* HAVE_RPCSVC_NIS_H */
ac_cv_nfs_prot_headers=sunos3 ;;
sunos4* | solaris1* )
ac_cv_nfs_prot_headers=sunos4 ;;
- sunos5.[[0-3]]* | solaris2.[[0-3]]* )
+ sunos5.[[0-3]] | solaris2.[[0-3]] )
ac_cv_nfs_prot_headers=sunos5_3 ;;
sunos5.4* | solaris2.4* )
ac_cv_nfs_prot_headers=sunos5_4 ;;
ac_cv_nfs_prot_headers=sunos5_6 ;;
sunos5.7* | solaris2.7* )
ac_cv_nfs_prot_headers=sunos5_7 ;;
- sunos* | solaris* )
+ sunos5* | solaris2* )
ac_cv_nfs_prot_headers=sunos5_8 ;;
bsdi2*)
ac_cv_nfs_prot_headers=bsdi2 ;;