diff options
Diffstat (limited to 'Modules/readline.c')
-rw-r--r-- | Modules/readline.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/readline.c b/Modules/readline.c index 79b8870ce2..899a2232b6 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -17,6 +17,14 @@ #endif /* GNU readline definitions */ +/* If you have string.h, you might need to add yourself to this #if... [cjh] */ +#if defined(__BEOS__) +#undef HAVE_CONFIG_H +/* At max warnings, we need protos for everything. [cjh] */ +#include <readline/readline.h> +#include <readline/history.h> +#include <unistd.h> +#else #include <readline/readline.h> /* You may need to add an -I option to Setup */ extern int rl_parse_and_bind(); @@ -26,6 +34,7 @@ extern int rl_bind_key(); extern int rl_bind_key_in_map(); extern int rl_initialize(); extern int add_history(); +#endif /* Pointers needed from outside (but not declared in a header file). */ extern int (*PyOS_InputHook)(); |