* more portable endian detection support
authorChristos Zoulas <christos@zoulas.com>
Wed, 17 Sep 2008 20:14:56 +0000 (20:14 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 17 Sep 2008 20:14:56 +0000 (20:14 +0000)
* add tmpfs and efs support

include/am_defs.h

index c3454e4cb115763ab29149f5e9af55b3dfdc6e74..f8ad24d7193838d8d158847e6fa238fdbe51ce95 100644 (file)
@@ -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 <sys/fs/tmp.h>
 #endif /* HAVE_SYS_FS_TMP_H */
+#ifdef HAVE_FS_TMPFS_TMPFS_ARGS_H
+# include <fs/tmpfs/tmpfs_args.h>
+#endif /* HAVE_FS_TMPFS_TMPFS_ARGS_H */
+
 
 /*
  * Actions to take if <sys/fs/ufs_mount.h> exists.
@@ -879,6 +891,9 @@ struct sockaddr_dl;
 #ifdef HAVE_SYS_FS_EFS_CLNT_H
 # include <sys/fs/efs_clnt.h>
 #endif /* HAVE_SYS_FS_EFS_CLNT_H */
+#ifdef HAVE_FS_EFS_EFS_MOUNT_H
+# include <fs/efs/efs_mount.h>
+#endif /* HAVE_FS_EFS_EFS_MOUNT_H */
 
 /*
  * Actions to take if <sys/fs/xfs_clnt.h> exists.