File: 027-readline_is_editline.patch

package info (click to toggle)
php5 5.2.0-8%2Betch1
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 58,836 kB
  • ctags: 45,575
  • sloc: ansic: 535,107; sh: 17,819; php: 11,336; cpp: 4,289; xml: 3,861; yacc: 2,446; lex: 2,174; makefile: 1,150; tcl: 1,128; awk: 693; perl: 71; sql: 22; pascal: 15
file content (34 lines) | stat: -rw-r--r-- 1,170 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- php4-4.3.9/ext/readline/config.m4	2003-09-30 20:54:04.000000000 -0600
+++ php4-4.3.9/ext/readline/config.m4	2004-10-04 21:40:38.000000000 -0600
@@ -12,7 +12,7 @@
 
 if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
   for i in $PHP_READLINE /usr/local /usr; do
-    test -f $i/include/readline/readline.h && READLINE_DIR=$i && break
+    test -f $i/include/editline/readline.h && READLINE_DIR=$i && break
   done
 
   if test -z "$READLINE_DIR"; then
@@ -64,7 +64,7 @@
 elif test "$PHP_LIBEDIT" != "no"; then
 
   for i in $PHP_LIBEDIT /usr/local /usr; do
-    test -f $i/include/readline/readline.h && LIBEDIT_DIR=$i && break
+    test -f $i/include/editline/readline.h && LIBEDIT_DIR=$i && break
   done
 
   if test -z "$LIBEDIT_DIR"; then
--- php4-4.3.9/ext/readline/readline.c	2002-12-31 09:35:15.000000000 -0700
+++ php4-4.3.9/ext/readline/readline.c	2004-10-04 21:42:15.000000000 -0600
@@ -33,9 +33,9 @@
 #define rl_completion_matches completion_matches
 #endif
 
-#include <readline/readline.h>
+#include <editline/readline.h>
 #ifndef HAVE_LIBEDIT
-#include <readline/history.h>
+#include <editline/history.h>
 #endif
 
 PHP_FUNCTION(readline);