aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2001-04-26 19:18:46 +0800
committertg <tg@FreeBSD.org>2001-04-26 19:18:46 +0800
commit0f2bd8da2fd2e7467401f1ebc129c654c5ccd9b6 (patch)
treec60e68a3ccd29e009f0ef49d38e1e8a218d0893f /lang
parent6f73b2b15142039d581800d33afea95c34a22ed3 (diff)
downloadfreebsd-ports-gnome-0f2bd8da2fd2e7467401f1ebc129c654c5ccd9b6.tar.gz
freebsd-ports-gnome-0f2bd8da2fd2e7467401f1ebc129c654c5ccd9b6.tar.zst
freebsd-ports-gnome-0f2bd8da2fd2e7467401f1ebc129c654c5ccd9b6.zip
Fix building on -current.
PR: 26778 Obtained from: Python CVS
Diffstat (limited to 'lang')
-rw-r--r--lang/python-devel/files/patch-Modules:readline.c38
-rw-r--r--lang/python/files/patch-Modules:readline.c38
-rw-r--r--lang/python20/files/patch-Modules:readline.c38
-rw-r--r--lang/python21/files/patch-Modules:readline.c38
-rw-r--r--lang/python22/files/patch-Modules:readline.c38
-rw-r--r--lang/python23/files/patch-Modules:readline.c38
-rw-r--r--lang/python24/files/patch-Modules:readline.c38
-rw-r--r--lang/python25/files/patch-Modules:readline.c38
-rw-r--r--lang/python26/files/patch-Modules:readline.c38
-rw-r--r--lang/python27/files/patch-Modules:readline.c38
-rw-r--r--lang/python30/files/patch-Modules:readline.c38
-rw-r--r--lang/python31/files/patch-Modules:readline.c38
-rw-r--r--lang/python32/files/patch-Modules:readline.c38
13 files changed, 494 insertions, 0 deletions
diff --git a/lang/python-devel/files/patch-Modules:readline.c b/lang/python-devel/files/patch-Modules:readline.c
new file mode 100644
index 000000000000..5d59dde25c28
--- /dev/null
+++ b/lang/python-devel/files/patch-Modules:readline.c
@@ -0,0 +1,38 @@
+--- Modules/readline.c.orig Mon Oct 16 21:49:34 2000
++++ Modules/readline.c Wed Apr 25 06:23:47 2001
+@@ -17,32 +17,13 @@
+ #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] */
++#undef HAVE_CONFIG_H /* Else readline/chardefs.h includes strings.h */
+ #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(char *);
+-extern int rl_read_init_file(char *);
+-extern int rl_insert_text(char *);
+-extern int rl_bind_key(int, Function *);
+-extern int rl_bind_key_in_map(int, Function *, Keymap);
+-extern int rl_initialize(void);
+-extern int add_history(char *);
+-extern int read_history(char *);
+-extern int write_history(char *);
+-extern int history_truncate_file(char *, int);
+-extern Function *rl_event_hook;
+-#endif
+
+ /* Pointers needed from outside (but not declared in a header file). */
+-extern int (*PyOS_InputHook)(void);
+-extern char *(*PyOS_ReadlineFunctionPointer)(char *);
++extern DL_IMPORT(int) (*PyOS_InputHook)(void);
++extern DL_IMPORT(char) *(*PyOS_ReadlineFunctionPointer)(char *);
+
+
+ /* Exported function to send one line to readline's init file parser */
diff --git a/lang/python/files/patch-Modules:readline.c b/lang/python/files/patch-Modules:readline.c
new file mode 100644
index 000000000000..5d59dde25c28
--- /dev/null
+++ b/lang/python/files/patch-Modules:readline.c
@@ -0,0 +1,38 @@
+--- Modules/readline.c.orig Mon Oct 16 21:49:34 2000
++++ Modules/readline.c Wed Apr 25 06:23:47 2001
+@@ -17,32 +17,13 @@
+ #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] */
++#undef HAVE_CONFIG_H /* Else readline/chardefs.h includes strings.h */
+ #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(char *);
+-extern int rl_read_init_file(char *);
+-extern int rl_insert_text(char *);
+-extern int rl_bind_key(int, Function *);
+-extern int rl_bind_key_in_map(int, Function *, Keymap);
+-extern int rl_initialize(void);
+-extern int add_history(char *);
+-extern int read_history(char *);
+-extern int write_history(char *);
+-extern int history_truncate_file(char *, int);
+-extern Function *rl_event_hook;
+-#endif
+
+ /* Pointers needed from outside (but not declared in a header file). */
+-extern int (*PyOS_InputHook)(void);
+-extern char *(*PyOS_ReadlineFunctionPointer)(char *);
++extern DL_IMPORT(int) (*PyOS_InputHook)(void);
++extern DL_IMPORT(char) *(*PyOS_ReadlineFunctionPointer)(char *);
+
+
+ /* Exported function to send one line to readline's init file parser */
diff --git a/lang/python20/files/patch-Modules:readline.c b/lang/python20/files/patch-Modules:readline.c
new file mode 100644
index 000000000000..5d59dde25c28
--- /dev/null
+++ b/lang/python20/files/patch-Modules:readline.c
@@ -0,0 +1,38 @@
+--- Modules/readline.c.orig Mon Oct 16 21:49:34 2000
++++ Modules/readline.c Wed Apr 25 06:23:47 2001
+@@ -17,32 +17,13 @@
+ #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] */
++#undef HAVE_CONFIG_H /* Else readline/chardefs.h includes strings.h */
+ #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(char *);
+-extern int rl_read_init_file(char *);
+-extern int rl_insert_text(char *);
+-extern int rl_bind_key(int, Function *);
+-extern int rl_bind_key_in_map(int, Function *, Keymap);
+-extern int rl_initialize(void);
+-extern int add_history(char *);
+-extern int read_history(char *);
+-extern int write_history(char *);
+-extern int history_truncate_file(char *, int);
+-extern Function *rl_event_hook;
+-#endif
+
+ /* Pointers needed from outside (but not declared in a header file). */
+-extern int (*PyOS_InputHook)(void);
+-extern char *(*PyOS_ReadlineFunctionPointer)(char *);
++extern DL_IMPORT(int) (*PyOS_InputHook)(void);
++extern DL_IMPORT(char) *(*PyOS_ReadlineFunctionPointer)(char *);
+
+
+ /* Exported function to send one line to readline's init file parser */
diff --git a/lang/python21/files/patch-Modules:readline.c b/lang/python21/files/patch-Modules:readline.c
new file mode 100644
index 000000000000..5d59dde25c28
--- /dev/null
+++ b/lang/python21/files/patch-Modules:readline.c
@@ -0,0 +1,38 @@
+--- Modules/readline.c.orig Mon Oct 16 21:49:34 2000
++++ Modules/readline.c Wed Apr 25 06:23:47 2001
+@@ -17,32 +17,13 @@
+ #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] */
++#undef HAVE_CONFIG_H /* Else readline/chardefs.h includes strings.h */
+ #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(char *);
+-extern int rl_read_init_file(char *);
+-extern int rl_insert_text(char *);
+-extern int rl_bind_key(int, Function *);
+-extern int rl_bind_key_in_map(int, Function *, Keymap);
+-extern int rl_initialize(void);
+-extern int add_history(char *);
+-extern int read_history(char *);
+-extern int write_history(char *);
+-extern int history_truncate_file(char *, int);
+-extern Function *rl_event_hook;
+-#endif
+
+ /* Pointers needed from outside (but not declared in a header file). */
+-extern int (*PyOS_InputHook)(void);
+-extern char *(*PyOS_ReadlineFunctionPointer)(char *);
++extern DL_IMPORT(int) (*PyOS_InputHook)(void);
++extern DL_IMPORT(char) *(*PyOS_ReadlineFunctionPointer)(char *);
+
+
+ /* Exported function to send one line to readline's init file parser */
diff --git a/lang/python22/files/patch-Modules:readline.c b/lang/python22/files/patch-Modules:readline.c
new file mode 100644
index 000000000000..5d59dde25c28
--- /dev/null
+++ b/lang/python22/files/patch-Modules:readline.c
@@ -0,0 +1,38 @@
+--- Modules/readline.c.orig Mon Oct 16 21:49:34 2000
++++ Modules/readline.c Wed Apr 25 06:23:47 2001
+@@ -17,32 +17,13 @@
+ #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] */
++#undef HAVE_CONFIG_H /* Else readline/chardefs.h includes strings.h */
+ #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(char *);
+-extern int rl_read_init_file(char *);
+-extern int rl_insert_text(char *);
+-extern int rl_bind_key(int, Function *);
+-extern int rl_bind_key_in_map(int, Function *, Keymap);
+-extern int rl_initialize(void);
+-extern int add_history(char *);
+-extern int read_history(char *);
+-extern int write_history(char *);
+-extern int history_truncate_file(char *, int);
+-extern Function *rl_event_hook;
+-#endif
+
+ /* Pointers needed from outside (but not declared in a header file). */
+-extern int (*PyOS_InputHook)(void);
+-extern char *(*PyOS_ReadlineFunctionPointer)(char *);
++extern DL_IMPORT(int) (*PyOS_InputHook)(void);
++extern DL_IMPORT(char) *(*PyOS_ReadlineFunctionPointer)(char *);
+
+
+ /* Exported function to send one line to readline's init file parser */
diff --git a/lang/python23/files/patch-Modules:readline.c b/lang/python23/files/patch-Modules:readline.c
new file mode 100644
index 000000000000..5d59dde25c28
--- /dev/null
+++ b/lang/python23/files/patch-Modules:readline.c
@@ -0,0 +1,38 @@
+--- Modules/readline.c.orig Mon Oct 16 21:49:34 2000
++++ Modules/readline.c Wed Apr 25 06:23:47 2001
+@@ -17,32 +17,13 @@
+ #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] */
++#undef HAVE_CONFIG_H /* Else readline/chardefs.h includes strings.h */
+ #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(char *);
+-extern int rl_read_init_file(char *);
+-extern int rl_insert_text(char *);
+-extern int rl_bind_key(int, Function *);
+-extern int rl_bind_key_in_map(int, Function *, Keymap);
+-extern int rl_initialize(void);
+-extern int add_history(char *);
+-extern int read_history(char *);
+-extern int write_history(char *);
+-extern int history_truncate_file(char *, int);
+-extern Function *rl_event_hook;
+-#endif
+
+ /* Pointers needed from outside (but not declared in a header file). */
+-extern int (*PyOS_InputHook)(void);
+-extern char *(*PyOS_ReadlineFunctionPointer)(char *);
++extern DL_IMPORT(int) (*PyOS_InputHook)(void);
++extern DL_IMPORT(char) *(*PyOS_ReadlineFunctionPointer)(char *);
+
+
+ /* Exported function to send one line to readline's init file parser */
diff --git a/lang/python24/files/patch-Modules:readline.c b/lang/python24/files/patch-Modules:readline.c
new file mode 100644
index 000000000000..5d59dde25c28
--- /dev/null
+++ b/lang/python24/files/patch-Modules:readline.c
@@ -0,0 +1,38 @@
+--- Modules/readline.c.orig Mon Oct 16 21:49:34 2000
++++ Modules/readline.c Wed Apr 25 06:23:47 2001
+@@ -17,32 +17,13 @@
+ #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] */
++#undef HAVE_CONFIG_H /* Else readline/chardefs.h includes strings.h */
+ #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(char *);
+-extern int rl_read_init_file(char *);
+-extern int rl_insert_text(char *);
+-extern int rl_bind_key(int, Function *);
+-extern int rl_bind_key_in_map(int, Function *, Keymap);
+-extern int rl_initialize(void);
+-extern int add_history(char *);
+-extern int read_history(char *);
+-extern int write_history(char *);
+-extern int history_truncate_file(char *, int);
+-extern Function *rl_event_hook;
+-#endif
+
+ /* Pointers needed from outside (but not declared in a header file). */
+-extern int (*PyOS_InputHook)(void);
+-extern char *(*PyOS_ReadlineFunctionPointer)(char *);
++extern DL_IMPORT(int) (*PyOS_InputHook)(void);
++extern DL_IMPORT(char) *(*PyOS_ReadlineFunctionPointer)(char *);
+
+
+ /* Exported function to send one line to readline's init file parser */
diff --git a/lang/python25/files/patch-Modules:readline.c b/lang/python25/files/patch-Modules:readline.c
new file mode 100644
index 000000000000..5d59dde25c28
--- /dev/null
+++ b/lang/python25/files/patch-Modules:readline.c
@@ -0,0 +1,38 @@
+--- Modules/readline.c.orig Mon Oct 16 21:49:34 2000
++++ Modules/readline.c Wed Apr 25 06:23:47 2001
+@@ -17,32 +17,13 @@
+ #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] */
++#undef HAVE_CONFIG_H /* Else readline/chardefs.h includes strings.h */
+ #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(char *);
+-extern int rl_read_init_file(char *);
+-extern int rl_insert_text(char *);
+-extern int rl_bind_key(int, Function *);
+-extern int rl_bind_key_in_map(int, Function *, Keymap);
+-extern int rl_initialize(void);
+-extern int add_history(char *);
+-extern int read_history(char *);
+-extern int write_history(char *);
+-extern int history_truncate_file(char *, int);
+-extern Function *rl_event_hook;
+-#endif
+
+ /* Pointers needed from outside (but not declared in a header file). */
+-extern int (*PyOS_InputHook)(void);
+-extern char *(*PyOS_ReadlineFunctionPointer)(char *);
++extern DL_IMPORT(int) (*PyOS_InputHook)(void);
++extern DL_IMPORT(char) *(*PyOS_ReadlineFunctionPointer)(char *);
+
+
+ /* Exported function to send one line to readline's init file parser */
diff --git a/lang/python26/files/patch-Modules:readline.c b/lang/python26/files/patch-Modules:readline.c
new file mode 100644
index 000000000000..5d59dde25c28
--- /dev/null
+++ b/lang/python26/files/patch-Modules:readline.c
@@ -0,0 +1,38 @@
+--- Modules/readline.c.orig Mon Oct 16 21:49:34 2000
++++ Modules/readline.c Wed Apr 25 06:23:47 2001
+@@ -17,32 +17,13 @@
+ #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] */
++#undef HAVE_CONFIG_H /* Else readline/chardefs.h includes strings.h */
+ #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(char *);
+-extern int rl_read_init_file(char *);
+-extern int rl_insert_text(char *);
+-extern int rl_bind_key(int, Function *);
+-extern int rl_bind_key_in_map(int, Function *, Keymap);
+-extern int rl_initialize(void);
+-extern int add_history(char *);
+-extern int read_history(char *);
+-extern int write_history(char *);
+-extern int history_truncate_file(char *, int);
+-extern Function *rl_event_hook;
+-#endif
+
+ /* Pointers needed from outside (but not declared in a header file). */
+-extern int (*PyOS_InputHook)(void);
+-extern char *(*PyOS_ReadlineFunctionPointer)(char *);
++extern DL_IMPORT(int) (*PyOS_InputHook)(void);
++extern DL_IMPORT(char) *(*PyOS_ReadlineFunctionPointer)(char *);
+
+
+ /* Exported function to send one line to readline's init file parser */
diff --git a/lang/python27/files/patch-Modules:readline.c b/lang/python27/files/patch-Modules:readline.c
new file mode 100644
index 000000000000..5d59dde25c28
--- /dev/null
+++ b/lang/python27/files/patch-Modules:readline.c
@@ -0,0 +1,38 @@
+--- Modules/readline.c.orig Mon Oct 16 21:49:34 2000
++++ Modules/readline.c Wed Apr 25 06:23:47 2001
+@@ -17,32 +17,13 @@
+ #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] */
++#undef HAVE_CONFIG_H /* Else readline/chardefs.h includes strings.h */
+ #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(char *);
+-extern int rl_read_init_file(char *);
+-extern int rl_insert_text(char *);
+-extern int rl_bind_key(int, Function *);
+-extern int rl_bind_key_in_map(int, Function *, Keymap);
+-extern int rl_initialize(void);
+-extern int add_history(char *);
+-extern int read_history(char *);
+-extern int write_history(char *);
+-extern int history_truncate_file(char *, int);
+-extern Function *rl_event_hook;
+-#endif
+
+ /* Pointers needed from outside (but not declared in a header file). */
+-extern int (*PyOS_InputHook)(void);
+-extern char *(*PyOS_ReadlineFunctionPointer)(char *);
++extern DL_IMPORT(int) (*PyOS_InputHook)(void);
++extern DL_IMPORT(char) *(*PyOS_ReadlineFunctionPointer)(char *);
+
+
+ /* Exported function to send one line to readline's init file parser */
diff --git a/lang/python30/files/patch-Modules:readline.c b/lang/python30/files/patch-Modules:readline.c
new file mode 100644
index 000000000000..5d59dde25c28
--- /dev/null
+++ b/lang/python30/files/patch-Modules:readline.c
@@ -0,0 +1,38 @@
+--- Modules/readline.c.orig Mon Oct 16 21:49:34 2000
++++ Modules/readline.c Wed Apr 25 06:23:47 2001
+@@ -17,32 +17,13 @@
+ #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] */
++#undef HAVE_CONFIG_H /* Else readline/chardefs.h includes strings.h */
+ #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(char *);
+-extern int rl_read_init_file(char *);
+-extern int rl_insert_text(char *);
+-extern int rl_bind_key(int, Function *);
+-extern int rl_bind_key_in_map(int, Function *, Keymap);
+-extern int rl_initialize(void);
+-extern int add_history(char *);
+-extern int read_history(char *);
+-extern int write_history(char *);
+-extern int history_truncate_file(char *, int);
+-extern Function *rl_event_hook;
+-#endif
+
+ /* Pointers needed from outside (but not declared in a header file). */
+-extern int (*PyOS_InputHook)(void);
+-extern char *(*PyOS_ReadlineFunctionPointer)(char *);
++extern DL_IMPORT(int) (*PyOS_InputHook)(void);
++extern DL_IMPORT(char) *(*PyOS_ReadlineFunctionPointer)(char *);
+
+
+ /* Exported function to send one line to readline's init file parser */
diff --git a/lang/python31/files/patch-Modules:readline.c b/lang/python31/files/patch-Modules:readline.c
new file mode 100644
index 000000000000..5d59dde25c28
--- /dev/null
+++ b/lang/python31/files/patch-Modules:readline.c
@@ -0,0 +1,38 @@
+--- Modules/readline.c.orig Mon Oct 16 21:49:34 2000
++++ Modules/readline.c Wed Apr 25 06:23:47 2001
+@@ -17,32 +17,13 @@
+ #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] */
++#undef HAVE_CONFIG_H /* Else readline/chardefs.h includes strings.h */
+ #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(char *);
+-extern int rl_read_init_file(char *);
+-extern int rl_insert_text(char *);
+-extern int rl_bind_key(int, Function *);
+-extern int rl_bind_key_in_map(int, Function *, Keymap);
+-extern int rl_initialize(void);
+-extern int add_history(char *);
+-extern int read_history(char *);
+-extern int write_history(char *);
+-extern int history_truncate_file(char *, int);
+-extern Function *rl_event_hook;
+-#endif
+
+ /* Pointers needed from outside (but not declared in a header file). */
+-extern int (*PyOS_InputHook)(void);
+-extern char *(*PyOS_ReadlineFunctionPointer)(char *);
++extern DL_IMPORT(int) (*PyOS_InputHook)(void);
++extern DL_IMPORT(char) *(*PyOS_ReadlineFunctionPointer)(char *);
+
+
+ /* Exported function to send one line to readline's init file parser */
diff --git a/lang/python32/files/patch-Modules:readline.c b/lang/python32/files/patch-Modules:readline.c
new file mode 100644
index 000000000000..5d59dde25c28
--- /dev/null
+++ b/lang/python32/files/patch-Modules:readline.c
@@ -0,0 +1,38 @@
+--- Modules/readline.c.orig Mon Oct 16 21:49:34 2000
++++ Modules/readline.c Wed Apr 25 06:23:47 2001
+@@ -17,32 +17,13 @@
+ #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] */
++#undef HAVE_CONFIG_H /* Else readline/chardefs.h includes strings.h */
+ #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(char *);
+-extern int rl_read_init_file(char *);
+-extern int rl_insert_text(char *);
+-extern int rl_bind_key(int, Function *);
+-extern int rl_bind_key_in_map(int, Function *, Keymap);
+-extern int rl_initialize(void);
+-extern int add_history(char *);
+-extern int read_history(char *);
+-extern int write_history(char *);
+-extern int history_truncate_file(char *, int);
+-extern Function *rl_event_hook;
+-#endif
+
+ /* Pointers needed from outside (but not declared in a header file). */
+-extern int (*PyOS_InputHook)(void);
+-extern char *(*PyOS_ReadlineFunctionPointer)(char *);
++extern DL_IMPORT(int) (*PyOS_InputHook)(void);
++extern DL_IMPORT(char) *(*PyOS_ReadlineFunctionPointer)(char *);
+
+
+ /* Exported function to send one line to readline's init file parser */