jan             Wed Oct  9 14:59:15 2002 EDT

  Modified files:              
    /php4/ext/readline  readline.c 
  Log:
   - fix build on FreeBSD, verified by thies.
  
  
Index: php4/ext/readline/readline.c
diff -u php4/ext/readline/readline.c:1.29 php4/ext/readline/readline.c:1.30
--- php4/ext/readline/readline.c:1.29   Thu Mar 21 20:10:30 2002
+++ php4/ext/readline/readline.c        Wed Oct  9 14:59:15 2002
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: readline.c,v 1.29 2002/03/22 01:10:30 hholzgra Exp $ */
+/* $Id: readline.c,v 1.30 2002/10/09 18:59:15 jan Exp $ */
 
 /* {{{ includes & prototypes */
 
@@ -38,7 +38,9 @@
 PHP_FUNCTION(readline_add_history);
 PHP_FUNCTION(readline_info);
 PHP_FUNCTION(readline_clear_history);
+#ifndef HAVE_LIBEDIT
 PHP_FUNCTION(readline_list_history);
+#endif
 PHP_FUNCTION(readline_read_history);
 PHP_FUNCTION(readline_write_history);
 PHP_FUNCTION(readline_completion_function);
@@ -57,7 +59,7 @@
        PHP_FE(readline_info,               NULL)
        PHP_FE(readline_add_history,            NULL)
        PHP_FE(readline_clear_history,          NULL)
-#ifdef HAVE_LIBREADLINE
+#ifndef HAVE_LIBEDIT
        PHP_FE(readline_list_history,           NULL)
 #endif
        PHP_FE(readline_read_history,           NULL)
@@ -256,7 +258,7 @@
 /* }}} */
 /* {{{ proto array readline_list_history(void) 
    Lists the history */
-#ifdef HAVE_LIBREADLINE
+#ifndef HAVE_LIBEDIT
 PHP_FUNCTION(readline_list_history)
 {
        HIST_ENTRY **history;



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to