Add openssh
[kopensolaris-gnu/patches.git] / libedit.diff
1 Index: lib/libedit/filecomplete.c
2 ===================================================================
3 RCS file: /cvsroot/src/lib/libedit/filecomplete.c,v
4 retrieving revision 1.12
5 diff -u -p -r1.12 filecomplete.c
6 --- lib/libedit/filecomplete.c  11 Jan 2009 15:00:23 -0000      1.12
7 +++ lib/libedit/filecomplete.c  25 Jan 2009 20:20:51 -0000
8 @@ -208,7 +208,7 @@ fn_filename_completion_function(const ch
9                 /* otherwise, get first entry where first */
10                 /* filename_len characters are equal      */
11                 if (entry->d_name[0] == filename[0]
12 -#if defined(__SVR4) || defined(__linux__)
13 +#if defined(__SVR4) || defined(__linux__) || defined(__GLIBC__)
14                     && strlen(entry->d_name) >= filename_len
15  #else
16                     && entry->d_namlen >= filename_len
17 @@ -220,7 +220,7 @@ fn_filename_completion_function(const ch
18  
19         if (entry) {            /* match found */
20  
21 -#if defined(__SVR4) || defined(__linux__)
22 +#if defined(__SVR4) || defined(__linux__) || defined(__GLIBC__)
23                 len = strlen(entry->d_name);
24  #else
25                 len = entry->d_namlen;