summaryrefslogtreecommitdiff
path: root/cmd-line-utils/readline/xmalloc.c
diff options
context:
space:
mode:
authormsvensson@neptunus.(none) <>2005-04-19 13:12:19 +0200
committermsvensson@neptunus.(none) <>2005-04-19 13:12:19 +0200
commit4a4c9017add2b693c64526b5f46181c128459d5b (patch)
treec915738867032bf72eb6dc691740741a35c15d80 /cmd-line-utils/readline/xmalloc.c
parentd5646eb6c5c7155abc3978734db9d6040c28df72 (diff)
downloadmariadb-git-4a4c9017add2b693c64526b5f46181c128459d5b.tar.gz
BUG#9568 mysql segfaults from CTRL-R
- Segfault because of passing a 64-bit pointer to 32 bit integer. - Add new include config_readline.h which will calculate some new defines based on what is found in config.h - This file was originally included in readline 4.3 as config.h.in, only the part that makes new defines have been moved to this file.
Diffstat (limited to 'cmd-line-utils/readline/xmalloc.c')
-rw-r--r--cmd-line-utils/readline/xmalloc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd-line-utils/readline/xmalloc.c b/cmd-line-utils/readline/xmalloc.c
index 8985d340d39..698807addf9 100644
--- a/cmd-line-utils/readline/xmalloc.c
+++ b/cmd-line-utils/readline/xmalloc.c
@@ -20,9 +20,7 @@
Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
#define READLINE_LIBRARY
-#if defined (HAVE_CONFIG_H)
-#include <config.h>
-#endif
+#include "config_readline.h"
#include <stdio.h>