diff options
author | unknown <monty@narttu.mysql.fi> | 2003-02-28 14:32:40 +0200 |
---|---|---|
committer | unknown <monty@narttu.mysql.fi> | 2003-02-28 14:32:40 +0200 |
commit | 2ef62c12aaa7593bff731ccf31575678652141fc (patch) | |
tree | 9915e21c45ef2102c75cb9a3b453898e3f90a2eb /cmd-line-utils | |
parent | 21a32d758e9f6bf9e0fb2fca6548c1e37ad1af60 (diff) | |
download | mariadb-git-2ef62c12aaa7593bff731ccf31575678652141fc.tar.gz |
Portability fixes
cmd-line-utils/libedit/readline.c:
Portability fix (For IRIX)
include/my_global.h:
Portability fix (For Tru64)
include/my_xml.h:
Portability fix (True64)
('leave' is already defined)
strings/xml.c:
Portability fix (True64)
Diffstat (limited to 'cmd-line-utils')
-rw-r--r-- | cmd-line-utils/libedit/readline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-line-utils/libedit/readline.c b/cmd-line-utils/libedit/readline.c index 863ee064ab0..9069b46d1f8 100644 --- a/cmd-line-utils/libedit/readline.c +++ b/cmd-line-utils/libedit/readline.c @@ -1239,7 +1239,7 @@ filename_completion_function(const char *text, int state) /* otherwise, get first entry where first */ /* filename_len characters are equal */ if (entry->d_name[0] == filename[0] -#if defined(__SVR4) || defined(__linux__) +#ifdef HAVE_DIRENT_H && strlen(entry->d_name) >= filename_len #else && entry->d_namlen >= filename_len @@ -1252,7 +1252,7 @@ filename_completion_function(const char *text, int state) if (entry) { /* match found */ struct stat stbuf; -#if defined(__SVR4) || defined(__linux__) +#ifdef HAVE_DIRENT_H len = strlen(entry->d_name) + #else len = entry->d_namlen + |