freeswitch/libs/libedit.old/patches/00-readline.h.patch
Michal Bielicki 8cc4b29d20 replacing libedit
leaving libedit.old in just in case for a day ...


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7501 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-03 22:56:23 +00:00

25 lines
600 B
Diff

--- export/src/editline/readline.h 2007-03-02 22:26:59.000000000 +0100
+++ ../src/editline/readline.h 2007-03-02 22:38:45.000000000 +0100
@@ -45,9 +45,11 @@
typedef char *CPFunction(const char *, int);
typedef char **CPPFunction(const char *, int, int);
+typedef void *histdata_t;
+
typedef struct _hist_entry {
const char *line;
- const char *data;
+ histdata_t *data;
} HIST_ENTRY;
typedef struct _keymap_entry {
@@ -68,7 +70,7 @@
#ifndef CTRL
#include <sys/ioctl.h>
-#if !defined(__sun__) && !defined(__hpux__)
+#ifdef __GLIBC__
#include <sys/ttydefaults.h>
#endif
#ifndef CTRL