- fix warnings for missing prototypes - use termios instead of sgtty (why doesn't this work on amd64?)
28 lines
1 KiB
Text
28 lines
1 KiB
Text
$NetBSD: patch-bj,v 1.2 2008/12/17 02:19:59 christos Exp $
|
|
|
|
--- readline/readline.h.orig 1995-02-24 16:20:03.000000000 -0500
|
|
+++ readline/readline.h 2008-12-16 20:31:36.000000000 -0500
|
|
@@ -5,11 +5,13 @@
|
|
|
|
#include <readline/keymaps.h>
|
|
#include <stdio.h>
|
|
+#include <string.h>
|
|
|
|
#if !defined (__FUNCTION_DEF)
|
|
-typedef int Function ();
|
|
+typedef int Function (const char *);
|
|
#define __FUNCTION_DEF
|
|
#endif /* __FUNCTION_DEF */
|
|
+typedef char **CPPFunction(const char *, int, int);
|
|
|
|
/* The functions for manipulating the text of the line within readline.
|
|
Most of these functions are bound to keys by default. */
|
|
@@ -141,7 +143,7 @@
|
|
If this function exists and returns NULL then call the value of
|
|
rl_completion_entry_function to try to match, otherwise use the
|
|
array of strings returned. */
|
|
-extern Function *rl_attempted_completion_function;
|
|
+extern CPPFunction *rl_attempted_completion_function;
|
|
|
|
/* If non-zero, then this is the address of a function to call just
|
|
before readline_internal () prints the first prompt. */
|