freebsd-ports/devel/libreadline-java/files/patch-src-native-getline.c
Alejandro Pulver bb6b92bd34 Java-Readline is a port of GNU Readline for Java. Or, to be more
precise, it is a JNI-wrapper to Readline. It is distributed under the
LGPL.

You must call Readline.load(ReadlineLibrary lib); before using any
other methods.  If you omit the call to the load()-method, the pure
Java fallback solution is used.  Possible values for lib are:

ReadlineLibrary.PureJava
ReadlineLibrary.GnuReadline
ReadlineLibrary.Editline
ReadlineLibrary.Getline

Note that all programs using GnuReadline will fall under the GPL,
since Gnu-Readline is GPL software!

WWW: http://sourceforge.net/projects/java-readline/

PR:		ports/116817
Submitted by:	Martin Kammerhofer <mkamm at gmx.net>
2008-02-16 21:03:49 +00:00

10 lines
360 B
C

--- src/native/getline.c 2003-01-07 11:14:35.000000000 +0100
+++ /tmp/libreadline-java-0.8.0/src/native/getline.c 2007-09-22 22:20:06.000000000 +0200
@@ -136,7 +136,6 @@
#ifndef __convexc__
extern int read();
extern int kill();
-extern int ioctl();
#endif /* not __convexc__ */
#ifdef POSIX /* use POSIX interface */
#include <termios.h>