summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2003-07-04 20:49:06 +0000
committerKen Raeburn <raeburn@mit.edu>2003-07-04 20:49:06 +0000
commit560431b781bf79c7cdf0b1d5df14023811189910 (patch)
tree3d342a70a9576c0f8e853ab0cd247afe5e1d1629 /src
parent4e16a7cedbd9d5a545462701552e8c227d4252a2 (diff)
downloadkrb5-560431b781bf79c7cdf0b1d5df14023811189910.tar.gz
krb5-560431b781bf79c7cdf0b1d5df14023811189910.tar.xz
krb5-560431b781bf79c7cdf0b1d5df14023811189910.zip
darwin build can't compile util/et test program
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
Diffstat (limited to 'src')
-rw-r--r--src/util/et/ChangeLog5
-rw-r--r--src/util/et/test_et.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog
index b2929c55c1..1f43ce0318 100644
--- a/src/util/et/ChangeLog
+++ b/src/util/et/ChangeLog
@@ -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
diff --git a/src/util/et/test_et.c b/src/util/et/test_et.c
index a9d5457877..1089c21663 100644
--- a/src/util/et/test_et.c
+++ b/src/util/et/test_et.c
@@ -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