From: Ken Raeburn Date: Sun, 23 May 2004 17:20:09 +0000 (+0000) Subject: Use compile-time tests using system headers to determine byte order on AIX. X-Git-Tag: krb5-1.4-beta1~409 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=292270f0042e40c886cc5d838784f9360105c31a;p=krb5.git 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 --- 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.