diff options
author | Ying Wang <wangying@google.com> | 2012-05-30 18:02:55 -0700 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2012-05-31 15:06:22 -0700 |
commit | 8c8297f295be46e5ffefff73edbcd00e1848055f (patch) | |
tree | f38f71bdc62934d23e3fc5700d0aa354bcad8a7b | |
parent | 022a656396a9ceef931cbd6e24c9c44bcf7d2a90 (diff) | |
download | frameworks_base-8c8297f295be46e5ffefff73edbcd00e1848055f.zip frameworks_base-8c8297f295be46e5ffefff73edbcd00e1848055f.tar.gz frameworks_base-8c8297f295be46e5ffefff73edbcd00e1848055f.tar.bz2 |
Fix "Too many open files" error for aapt built with Mac OS X SDK 10.6.
With SDK 10.6 without _DARWIN_UNLIMITED_STREAMS aapt sometimes fails
right away with the error "Too many open files" when calling fopen().
Change-Id: Ifa7bd8a9530d706aa47f98be8186f1aefe943d76
-rw-r--r-- | tools/aapt/Android.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/aapt/Android.mk b/tools/aapt/Android.mk index d0a81dc..482f43e 100644 --- a/tools/aapt/Android.mk +++ b/tools/aapt/Android.mk @@ -29,6 +29,10 @@ LOCAL_SRC_FILES := \ LOCAL_CFLAGS += -Wno-format-y2k +ifeq (darwin,$(HOST_OS)) +LOCAL_CFLAGS += -D_DARWIN_UNLIMITED_STREAMS +endif + LOCAL_C_INCLUDES += external/expat/lib LOCAL_C_INCLUDES += external/libpng |