aboutsummaryrefslogtreecommitdiffstats
path: root/lib/readline
diff options
context:
space:
mode:
Diffstat (limited to 'lib/readline')
-rw-r--r--lib/readline/Android.mk82
-rw-r--r--lib/readline/complete.c2
2 files changed, 83 insertions, 1 deletions
diff --git a/lib/readline/Android.mk b/lib/readline/Android.mk
new file mode 100644
index 0000000..853ee21
--- /dev/null
+++ b/lib/readline/Android.mk
@@ -0,0 +1,82 @@
+LOCAL_PATH:= $(call my-dir)
+
+# ========================================================
+# libhistory.a
+# ========================================================
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES:= \
+ history.c \
+ histexpand.c \
+ histfile.c \
+ histsearch.c \
+ shell.c \
+ savestring.c \
+ mbutil.c \
+ xmalloc.c
+
+LOCAL_C_INCLUDES += \
+ $(LOCAL_PATH)/../.. \
+ $(LOCAL_PATH)/../../include \
+ $(LOCAL_PATH)/../../lib
+
+LOCAL_CFLAGS += \
+ -DHAVE_CONFIG_H
+
+LOCAL_MODULE := libhistory
+
+include $(BUILD_STATIC_LIBRARY)
+
+# ========================================================
+# libreadline.a
+# ========================================================
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES:= \
+ readline.c \
+ vi_mode.c \
+ funmap.c \
+ keymaps.c \
+ parens.c \
+ search.c \
+ rltty.c \
+ complete.c \
+ bind.c \
+ isearch.c \
+ display.c \
+ signals.c \
+ util.c \
+ kill.c \
+ undo.c \
+ macro.c \
+ input.c \
+ callback.c \
+ terminal.c \
+ text.c \
+ nls.c \
+ misc.c \
+ history.c \
+ histexpand.c \
+ histfile.c \
+ histsearch.c \
+ shell.c \
+ savestring.c \
+ mbutil.c \
+ tilde.c \
+ xmalloc.c \
+ compat.c
+
+LOCAL_C_INCLUDES += \
+ $(LOCAL_PATH)/../.. \
+ $(LOCAL_PATH)/../../include \
+ $(LOCAL_PATH)/../../lib
+
+LOCAL_CFLAGS += \
+ -DHAVE_CONFIG_H
+
+LOCAL_MODULE := libreadline
+
+include $(BUILD_STATIC_LIBRARY)
+
+# ========================================================
+include $(call all-makefiles-under,$(LOCAL_PATH))
diff --git a/lib/readline/complete.c b/lib/readline/complete.c
index bda2204..38249d2 100644
--- a/lib/readline/complete.c
+++ b/lib/readline/complete.c
@@ -1970,7 +1970,7 @@ rl_username_completion_function (text, state)
username = savestring (&text[first_char_loc]);
namelen = strlen (username);
- setpwent ();
+// setpwent ();
}
#if defined (HAVE_GETPWENT)