From 292270f0042e40c886cc5d838784f9360105c31a Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sun, 23 May 2004 17:20:09 +0000 Subject: [PATCH] Use compile-time tests using system headers to determine byte order on AIX. (cf ticket 2551, already pulled up and marked resolved) * configure.in: Check for sys/param.h too. * include/db-int.h: Include sys/param.h if available. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16351 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/db2/ChangeLog | 4 ++++ src/util/db2/configure.in | 3 ++- src/util/db2/include/ChangeLog | 4 ++++ src/util/db2/include/db-int.h | 3 +++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/util/db2/ChangeLog b/src/util/db2/ChangeLog index 55c393fc1..c0269703c 100644 --- a/src/util/db2/ChangeLog +++ b/src/util/db2/ChangeLog @@ -1,3 +1,7 @@ +2004-05-23 Ken Raeburn + + * configure.in: Check for sys/param.h too. + 2004-05-07 Ken Raeburn * configure.in: Check for machine/endian.h too. diff --git a/src/util/db2/configure.in b/src/util/db2/configure.in index dc1fb1a14..c5930b585 100644 --- a/src/util/db2/configure.in +++ b/src/util/db2/configure.in @@ -65,7 +65,8 @@ dnl checks for structures dnl checks for compiler characteristics dnl AC_C_BIGENDIAN - No, check at compile time; Darwin can build for multiple dnl targets in one tree. -AC_CHECK_HEADERS(endian.h machine/endian.h) +AC_CHECK_HEADERS(endian.h machine/endian.h sys/param.h) +dnl sys/param.h for AIX 4.3.3 (actually sys/machine.h) dnl There's also sys/endian.h on IRIX, but we already check _MIPSE{L,B}. AC_C_CONST AC_CHECK_SIZEOF(int) diff --git a/src/util/db2/include/ChangeLog b/src/util/db2/include/ChangeLog index 1ad22005c..676bbd44a 100644 --- a/src/util/db2/include/ChangeLog +++ b/src/util/db2/include/ChangeLog @@ -1,3 +1,7 @@ +2004-05-23 Ken Raeburn + + * db-int.h: Include sys/param.h if available. + 2004-05-07 Ken Raeburn * db-int.h: Include machine/endian.h if available. Check for diff --git a/src/util/db2/include/db-int.h b/src/util/db2/include/db-int.h index f50f6d048..bbb22925a 100644 --- a/src/util/db2/include/db-int.h +++ b/src/util/db2/include/db-int.h @@ -51,6 +51,9 @@ #ifdef HAVE_MACHINE_ENDIAN_H # include #endif +#ifdef HAVE_SYS_PARAM_H +# include +#endif /* Handle both BIG and LITTLE defined and BYTE_ORDER matches one, or just one defined; both with and without leading underscores. -- 2.26.2