* krb5.hin: special-case ultrix brokenness (again!) for
authorTom Yu <tlyu@mit.edu>
Fri, 30 Jun 1995 02:56:32 +0000 (02:56 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 30 Jun 1995 02:56:32 +0000 (02:56 +0000)
KRB5_CONST; krb5.h breaks when typedef'ing while
installed.  Yuck.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6202 dc483132-0cff-0310-8789-dd5450dbe970

src/include/ChangeLog
src/include/krb5.hin

index 3d51a9e1766eb61133a3a850745c34a4c71ab03c..57669784ff29e1a2bfc25ab3e4ceb9edcdf1e3e3 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jun 29 22:54:30 1995  Tom Yu  (tlyu@dragons-lair)
+
+       * krb5.hin: special-case ultrix brokenness (again!) for
+               KRB5_CONST; krb5.h breaks when typedef'ing while
+               installed.  Yuck.
 
 Tue Jun 27 16:14:38 EDT 1995   Paul Park       (pjpark@mit.edu)
        * krb5.hin - Reinstate KRB5_PROVIDE_PROTOTYPES.  This is needed for
index 6bd36e36695ba02e6cb5cd99760b09fa9be5226c..45ee5f6162c3626a514f51d0b13af1c03c757125 100644 (file)
@@ -153,7 +153,12 @@ typedef struct _krb5_data {
 } krb5_data;
 
 /* Define krb5_const as necessary */
-#ifdef KRB5_NO_CONST
+
+/*
+ * Hardcoded scrudge to deal with Ultrix; see note on NPROTOTYPE below
+ */
+
+#if defined(KRB5_NO_CONST) || (defined(__ultrix) && !defined(__GNUC__))
 #define krb5_const
 #else
 #define krb5_const const