aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlexey Tarasov <tarasov@dodologics.com>2008-11-05 07:40:37 +1000
committerAlexey Tarasov <tarasov@dodologics.com>2008-11-07 11:44:22 +1000
commitabb9638e3696e393d6dc45439feda91073e52103 (patch)
tree43c29f41effdbd07a94d5a7551b9af4a4841cbd3 /include
parent57401dc849db11f38133796c01d982de0391318d (diff)
downloadsystem_core-abb9638e3696e393d6dc45439feda91073e52103.tar.gz
system_core-abb9638e3696e393d6dc45439feda91073e52103.tar.bz2
system_core-abb9638e3696e393d6dc45439feda91073e52103.zip
1. added macro definitions to AndroidConfig.h
2. removed unnecessary include of <alloca.h>
Diffstat (limited to 'include')
-rw-r--r--include/arch/freebsd-x86/AndroidConfig.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/include/arch/freebsd-x86/AndroidConfig.h b/include/arch/freebsd-x86/AndroidConfig.h
index 4deeb5cf..cc118f47 100644
--- a/include/arch/freebsd-x86/AndroidConfig.h
+++ b/include/arch/freebsd-x86/AndroidConfig.h
@@ -152,10 +152,16 @@
* HAVE_LITTLE_ENDIAN -- we are little endian.
* HAVE_BIG_ENDIAN -- we are big endian.
*/
-#define HAVE_ENDIAN_H
+/* #define HAVE_ENDIAN_H */
#define HAVE_LITTLE_ENDIAN
/*
+ * Define this if you have sys/endian.h
+ * NOTE: mutually exclusive with HAVE_ENDIAN_H
+ */
+#define HAVE_SYS_ENDIAN_H
+
+/*
* We need to choose between 32-bit and 64-bit off_t. All of our code should
* agree on the same size. For desktop systems, use 64-bit values,
* because some of our libraries (e.g. wxWidgets) expect to be built that way.
@@ -293,4 +299,19 @@
*/
#define HAVE_WRITEV 1
+/*
+ * Define if <alloca.h> does not exist
+ * NOTE: <alloca.h> defines alloca() which
+ * on FreeBSD is defined in <stdlib.h>
+ */
+#define HAVE_NO_ALLOCA_H
+
+/*
+ * Defines CLOCK_PROCESS_CPUTIME_ID for clock_gettime()
+ * XXX: CLOCK_PROF seems to be commonly used replacement
+ */
+#ifndef CLOCK_PROCESS_CPUTIME_ID
+#define CLOCK_PROCESS_CPUTIME_ID CLOCK_PROF
+#endif
+
#endif /*_ANDROID_CONFIG_H*/