aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2013-04-24 11:10:52 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2013-04-24 11:10:52 +0800
commit9fefffd22d76e286c28090c2d993965ae54db304 (patch)
treed4b10ca3160c5e6425a749af3f342dae04b7dffe
parenta48f77b5badf04bfcb9f9fe4839efda4f83309a2 (diff)
downloadbison-9fefffd22d76e286c28090c2d993965ae54db304.tar.gz
Fix bison build with MacOSX SDK 10.6
10.6 doesn't have strndup and getline needed by bison 2.7 Add missing libraries from lib/. Work for 10.7.x and 10.8.x too. Change-Id: I10641f90a491c2e41e99d446b0dcccfef7fe3efc
-rw-r--r--Android.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index dc831786..e0329ca1 100644
--- a/Android.mk
+++ b/Android.mk
@@ -108,6 +108,8 @@ ifeq ($(BUILD_OS),darwin)
LOCAL_SRC_FILES += \
lib/error.c \
lib/fpending.c \
+ lib/getdelim.c \
+ lib/getline.c \
lib/getopt.c \
lib/getopt1.c \
lib/obstack.c \
@@ -119,6 +121,8 @@ LOCAL_SRC_FILES += \
lib/strchrnul.c \
lib/strerror-override.c \
lib/strerror.c \
+ lib/strndup.c \
+ lib/strnlen.c \
lib/strverscmp.c \
lib/wcwidth.c
endif