]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
darwin build can't compile util/et test program
authorKen Raeburn <raeburn@mit.edu>
Fri, 4 Jul 2003 20:49:06 +0000 (20:49 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 4 Jul 2003 20:49:06 +0000 (20:49 +0000)
The autoconf tests correctly determine that sys_nerr exists, and that
no declaration is needed.  The test_et.c code checks the wrong condition,
though, and the system header declaration of sys_nerr conflicts with the
one in that source file.  (The native one is const.)

* test_et.c: Conditionalize sys_nerr declaration on NEED_SYS_ERRLIST, not
HAVE_SYS_ERRLIST.

ticket: new

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

src/util/et/ChangeLog
src/util/et/test_et.c

index b2929c55c1ce75cd0372e361b1cd07cde7ceffda..1f43ce0318bc0de1fa1933bb4ce4fa570d7e0e91 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-04  Kenneth Raeburn  <raeburn@mit.edu>
+
+       * test_et.c: Conditionalize sys_nerr declaration on
+       NEED_SYS_ERRLIST, not HAVE_SYS_ERRLIST.
+
 2003-06-12  Alexandra Ellwood  <lxs@mit.edu>
     * error_table.h, et_c.awk, et_c.pl, et_h.awk, et_c.awk: Removed Mac 
     OS support because it prevents darwin builds from getting com error 
index a9d5457877fa2eb760e2035dcd7cbb9ec5a00f4b..1089c2166380ff3cd2828b9e609687bd35ed35c3 100644 (file)
@@ -7,7 +7,7 @@
 /* XXX Not part of official public API.  */
 extern const char *error_table_name (errcode_t);
 
-#ifdef HAVE_SYS_ERRLIST
+#ifdef NEED_SYS_ERRLIST
 extern int sys_nerr;
 #endif