From 9ac95ac846dc2e5e053512ae29c332b5ac8a6a27 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Wed, 17 Sep 2008 20:14:56 +0000 Subject: [PATCH] * more portable endian detection support * add tmpfs and efs support --- include/am_defs.h | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/include/am_defs.h b/include/am_defs.h index c3454e4..f8ad24d 100644 --- a/include/am_defs.h +++ b/include/am_defs.h @@ -132,11 +132,19 @@ struct sigevent; /* * Big-endian or little-endian? */ -#ifdef WORDS_BIGENDIAN -# define ARCH_ENDIAN "big" -#else /* not WORDS_BIGENDIAN */ -# define ARCH_ENDIAN "little" -#endif /* not WORDS_BIGENDIAN */ +#ifndef BYTE_ORDER +# if defined(WORDS_BIGENDIAN +# define ARCH_ENDIAN "big" +# else /* not WORDS_BIGENDIAN */ +# define ARCH_ENDIAN "little" +# endif /* not WORDS_BIGENDIAN */ +#else +# if BYTE_ORDER == BIG_ENDIAN +# define ARCH_ENDIAN "big" +# else +# define ARCH_ENDIAN "little" +# endif +#endif /* * Actions to take if HAVE_SYS_TYPES_H is defined. @@ -859,6 +867,10 @@ struct sockaddr_dl; #ifdef HAVE_SYS_FS_TMP_H # include #endif /* HAVE_SYS_FS_TMP_H */ +#ifdef HAVE_FS_TMPFS_TMPFS_ARGS_H +# include +#endif /* HAVE_FS_TMPFS_TMPFS_ARGS_H */ + /* * Actions to take if exists. @@ -879,6 +891,9 @@ struct sockaddr_dl; #ifdef HAVE_SYS_FS_EFS_CLNT_H # include #endif /* HAVE_SYS_FS_EFS_CLNT_H */ +#ifdef HAVE_FS_EFS_EFS_MOUNT_H +# include +#endif /* HAVE_FS_EFS_EFS_MOUNT_H */ /* * Actions to take if exists. -- 2.43.0