1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Portability fixes

cmd-line-utils/libedit/el.c:
  Portability fix
configure.in:
  Portability fix
  (Don't call AC_PROG_CC twice)
sql/mysqld.cc:
  Move stack checking to right position
This commit is contained in:
unknown
2003-03-11 00:30:35 +02:00
parent 401f3fb418
commit 80f6466c85
3 changed files with 27 additions and 33 deletions

View File

@ -369,6 +369,14 @@ el_line(EditLine *el)
static const char elpath[] = "/.editrc";
#if defined(MAXPATHLEN)
#define LIBEDIT_MAXPATHLEN MAXPATHLEN
#elif defined(PATH_MAX)
#define LIBEDIT_MAXPATHLEN PATH_MAX
#else
#define LIBEDIT_MAXPATHLEN 1024
#endif
/* el_source():
* Source a file
*/
@ -377,7 +385,7 @@ el_source(EditLine *el, const char *fname)
{
FILE *fp;
size_t len;
char *ptr, path[MAXPATHLEN];
char *ptr, path[LIBEDIT_MAXPATHLEN];
fp = NULL;
if (fname == NULL) {