Skip to content

Commit 41bdb03

Browse files
Ying WangJean-Baptiste Queru
authored andcommitted
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
1 parent 36ac43b commit 41bdb03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/aapt/Android.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ LOCAL_SRC_FILES := \
2929

3030

3131
LOCAL_CFLAGS += -Wno-format-y2k
32+
ifeq (darwin,$(HOST_OS))
33+
LOCAL_CFLAGS += -D_DARWIN_UNLIMITED_STREAMS
34+
endif
35+
3236

3337
LOCAL_C_INCLUDES += external/expat/lib
3438
LOCAL_C_INCLUDES += external/libpng

0 commit comments

Comments
 (0)