• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/corennnnn


Commit MetaInfo

修订版abb9638e3696e393d6dc45439feda91073e52103 (tree)
时间2008-11-07 10:44:22
作者Alexey Tarasov <tarasov@dodo...>
CommiterAlexey Tarasov

Log Message

1. added macro definitions to AndroidConfig.h
2. removed unnecessary include of <alloca.h>

更改概述

差异

--- a/include/arch/freebsd-x86/AndroidConfig.h
+++ b/include/arch/freebsd-x86/AndroidConfig.h
@@ -152,10 +152,16 @@
152152 * HAVE_LITTLE_ENDIAN -- we are little endian.
153153 * HAVE_BIG_ENDIAN -- we are big endian.
154154 */
155-#define HAVE_ENDIAN_H
155+/* #define HAVE_ENDIAN_H */
156156 #define HAVE_LITTLE_ENDIAN
157157
158158 /*
159+ * Define this if you have sys/endian.h
160+ * NOTE: mutually exclusive with HAVE_ENDIAN_H
161+ */
162+#define HAVE_SYS_ENDIAN_H
163+
164+/*
159165 * We need to choose between 32-bit and 64-bit off_t. All of our code should
160166 * agree on the same size. For desktop systems, use 64-bit values,
161167 * because some of our libraries (e.g. wxWidgets) expect to be built that way.
@@ -293,4 +299,19 @@
293299 */
294300 #define HAVE_WRITEV 1
295301
302+/*
303+ * Define if <alloca.h> does not exist
304+ * NOTE: <alloca.h> defines alloca() which
305+ * on FreeBSD is defined in <stdlib.h>
306+ */
307+#define HAVE_NO_ALLOCA_H
308+
309+/*
310+ * Defines CLOCK_PROCESS_CPUTIME_ID for clock_gettime()
311+ * XXX: CLOCK_PROF seems to be commonly used replacement
312+ */
313+#ifndef CLOCK_PROCESS_CPUTIME_ID
314+#define CLOCK_PROCESS_CPUTIME_ID CLOCK_PROF
315+#endif
316+
296317 #endif /*_ANDROID_CONFIG_H*/
--- a/liblog/logprint.c
+++ b/liblog/logprint.c
@@ -23,7 +23,6 @@
2323 #include <stdlib.h>
2424 #include <stdint.h>
2525 #include <string.h>
26-#include <alloca.h>
2726 #include <assert.h>
2827 #include <arpa/inet.h>
2928