Add libedit
authorrmh <rmh@thorin.(none)>
Sun, 25 Jan 2009 20:23:39 +0000 (21:23 +0100)
committerrmh <rmh@thorin.(none)>
Sun, 25 Jan 2009 20:23:39 +0000 (21:23 +0100)
libedit.diff [new file with mode: 0644]

diff --git a/libedit.diff b/libedit.diff
new file mode 100644 (file)
index 0000000..e7bace4
--- /dev/null
@@ -0,0 +1,25 @@
+Index: lib/libedit/filecomplete.c
+===================================================================
+RCS file: /cvsroot/src/lib/libedit/filecomplete.c,v
+retrieving revision 1.12
+diff -u -p -r1.12 filecomplete.c
+--- lib/libedit/filecomplete.c 11 Jan 2009 15:00:23 -0000      1.12
++++ lib/libedit/filecomplete.c 25 Jan 2009 20:20:51 -0000
+@@ -208,7 +208,7 @@ fn_filename_completion_function(const ch
+               /* otherwise, get first entry where first */
+               /* filename_len characters are equal      */
+               if (entry->d_name[0] == filename[0]
+-#if defined(__SVR4) || defined(__linux__)
++#if defined(__SVR4) || defined(__linux__) || defined(__GLIBC__)
+                   && strlen(entry->d_name) >= filename_len
+ #else
+                   && entry->d_namlen >= filename_len
+@@ -220,7 +220,7 @@ fn_filename_completion_function(const ch
+       if (entry) {            /* match found */
+-#if defined(__SVR4) || defined(__linux__)
++#if defined(__SVR4) || defined(__linux__) || defined(__GLIBC__)
+               len = strlen(entry->d_name);
+ #else
+               len = entry->d_namlen;