--- lookup-1.08b.orig/Makefile +++ lookup-1.08b/Makefile @@ -16,7 +16,7 @@ CC_TRAD=$(CC) -traditional ## set to "gcc1", "gcc2" or leave blank -gcc=gcc1 +gcc=gcc2 ## selecte exactly "0" (no) or "1" (yes) for the following optimize=0 @@ -34,7 +34,7 @@ ## it out if that's the case and you don't have a traditional compiler ## around. ## -COMPILE_WITH_TRAD=termset_trad.o +#COMPILE_WITH_TRAD=termset_trad.o RANLIB=/usr/bin/ranlib @@ -154,19 +154,22 @@ echo '/* this file generated by Makefile */' > tmp; -echo '#ifndef __SYSTEM_H__ /*file wrapper*/' >> tmp; -echo '#define __SYSTEM_H__' >> tmp; - if [ -f /usr/include/strings.h ]; then\ + if echo '#include ' | $(CC) -E - >/dev/null 2>&1; then\ echo '#define _HAVE_STRINGS_H_' >> tmp; \ else true; fi - if [ -f /usr/include/sys/termio.h ]; then\ + if echo '#include ' | $(CC) -E - >/dev/null 2>&1; then\ echo '#define _HAVE_SYS_TERMIO_H_' >> tmp; \ else true; fi - if [ -f /usr/include/sys/stdtypes.h ]; then\ + if echo '#include ' | $(CC) -E - >/dev/null 2>&1; then\ + echo '#define _HAVE_TERMIO_H_' >> tmp; \ + else true; fi + if echo '#include ' | $(CC) -E - >/dev/null 2>&1; then\ echo '#define _HAVE_SYS_STDTYPES_H_' >> tmp; \ else true; fi - if [ -f /usr/include/sys/fcntl.h ]; then\ + if echo '#include ' | $(CC) -E - >/dev/null 2>&1; then\ echo '#define _HAVE_SYS_FCNTL_H_' >> tmp; \ else true; fi - if [ -f /usr/include/fcntl.h ]; then\ + if echo '#include ' | $(CC) -E - >/dev/null 2>&1; then\ echo '#define _HAVE_FCNTL_H_' >> tmp; \ else true; fi -echo '#endif /* file wrapper */' >> tmp; --- lookup-1.08b.orig/commands.c +++ lookup-1.08b/commands.c @@ -262,7 +262,7 @@ if (is_xterm == unchecked) { - extern const char *getenv(const char *); + /* extern const char *getenv(const char *); */ String *term = (String *)getenv("TERM"); if (term && (strNcmp(term, "kterm", 5) == 0 || strNcmp(term, "xterm", 5) == 0 || --- lookup-1.08b.orig/debian/README.Debian +++ lookup-1.08b/debian/README.Debian @@ -0,0 +1,21 @@ +lookup for Debian +----------------- + +The default directory of dictionaries and index files is +/var/lib/lookup. + +lookup needs configuration file ~/.lookup. +/usr/share/doc/lookup/dot-lookup is a sample .lookup file. + +Index files are generated at installing time. + +When some dictionary is updated, you can remake its index file with + + /usr/sbin/lookupconfig DICTIONARY_NAME + +or rebuild all index files with + + /usr/sbin/lookupconfig + +If you want to try some unofficial patches to lookup, you should take a look +at William F. Maton Sotomayor's web site : http://www.wfms.org/lookup/index.html --- lookup-1.08b.orig/debian/changelog +++ lookup-1.08b/debian/changelog @@ -0,0 +1,144 @@ +lookup (1.08b-13build1) hirsute; urgency=medium + + * No change rebuild with fixed ownership. + + -- Dimitri John Ledkov Tue, 16 Feb 2021 15:17:41 +0000 + +lookup (1.08b-13) unstable; urgency=medium + + * Fix future glibc FTBFS. Closes: #967989 + Patch by Logan Rosen. + * Fix lookup hard codes locations of libc headers. Closes: #911455 + Patch by Helmut Grohne. + + -- Ludovic Drolez Thu, 04 Feb 2021 12:26:22 +0100 + +lookup (1.08b-12) unstable; urgency=low + + * Fix FTCBFS: Let dh_auto_build pass cross compilers to make. + Done by Helmut Grohne. Closes: #871408 + * Manual page encoded in UTF-8. Closes: #827334 + + -- Ludovic Drolez Wed, 23 May 2018 19:38:23 +0200 + +lookup (1.08b-11) unstable; urgency=low + + * renamed the getline() function to mygetline(). Closes: #552827 + + -- Ludovic Drolez Thu, 05 Nov 2009 13:58:49 +0100 + +lookup (1.08b-10) unstable; urgency=low + + * Fixed a segfault on amd64 thanks to Luc Saillard. Closes: #320722 + + -- Ludovic Drolez Fri, 26 Aug 2005 17:49:41 +0200 + +lookup (1.08b-9) unstable; urgency=low + + * FTBFS on amd64/gcc-4.0. Patch added. Closes: #284901 + + -- Ludovic Drolez Sat, 18 Dec 2004 13:26:43 +0100 + +lookup (1.08b-8) unstable; urgency=low + + * termset.c code is not portable. Makes gcc complain on alpha. + Applied a temporary workaround. Closes: #220303. + + -- Ludovic Drolez Sat, 20 Dec 2003 23:21:00 +0100 + +lookup (1.08b-7) unstable; urgency=low + + * build dependency on groff-base added. Closes: #219690 + * errno patch applied. Closes: #219533 + + -- Ludovic Drolez Sun, 9 Nov 2003 22:09:13 +0100 + +lookup (1.08b-6) unstable; urgency=low + + * New maintainer. Closes: #192687. + * now in free, does not depend on non-free packages. + * updated standards + + -- Ludovic Drolez Thu, 30 Oct 2003 21:38:39 +0100 + +lookup (1.08b-5) unstable; urgency=low + + * Allow any architectues. (closes: #123275, #121422) + + -- Hayao Nakahara Tue, 11 Dec 2001 10:56:37 +0900 + +lookup (1.08b-4) unstable; urgency=low + + * Added Build depends: groff: (closes: #98871) + * Excluded "alpha" from architectures. (closes: #85829) + + -- Hayao Nakahara Mon, 28 May 2001 23:08:22 +0900 + +lookup (1.08b-3) unstable; urgency=low + + * clean up debian directory. + + -- Hayao Nakahara Wed, 21 Feb 2001 02:52:59 +0900 + +lookup (1.08b-2) unstable; urgency=low + + * Fixed Makefile. + * Standards-Version: 3.2.1. + + -- Hayao Nakahara Wed, 21 Feb 2001 02:11:13 +0900 + +lookup (1.08b-1) unstable; urgency=low + + * Initial Debian Release. + + -- Hayao Nakahara Tue, 19 Oct 1999 00:24:21 +0900 + +lookup (1.01-7) frozen-jp unstable-jp; urgency=low + + * changed the directory for dictionaries and index files to + /var/lib/lookup + * added lookupconfig. + + -- Hayao Nakahara Thu, 26 Nov 1998 11:34:23 +0900 + +lookup (1.01-6) frozen-jp unstable-jp; urgency=low + + * moved /usr/man/ja_JP.ujis to /usr/man/ja. + + -- Hayao Nakahara Thu, 18 Jun 1998 04:45:26 +0900 + +lookup (1.01-5) frozen-jp unstable-jp; urgency=low + + * renamed CHAGNES to changelog. + + -- Hayao Nakahara Wed, 10 Jun 1998 21:45:59 +0900 + +lookup (1.01-4) contrib; urgency=low + + * moved to text section. + * fixed bug JP/152. + * moved /usr/lib/dict to /usr/share/dict. + + -- Hayao Nakahara Thu, 14 May 1998 23:43:46 +0900 + +lookup (1.01-3.2) unstable; urgency=low + + * fix bugs in lib/jregexp.c + + -- Fumitoshi UKAI Tue, 19 May 1998 19:53:54 +0900 + +lookup (1.01-3.1) unstable; urgency=low + + * recompiled with libc6 + + -- Fumitoshi UKAI Sat, 16 May 1998 18:08:50 +0900 + +lookup (1.01-3) unstable; urgency=low + + * new package format. + + -- Hayao Nakahara Sat, 28 Dec 1996 02:11:25 +0900 + +Local variables: +mode: debian-changelog +End: --- lookup-1.08b.orig/debian/compat +++ lookup-1.08b/debian/compat @@ -0,0 +1 @@ +10 --- lookup-1.08b.orig/debian/control +++ lookup-1.08b/debian/control @@ -0,0 +1,16 @@ +Source: lookup +Section: text +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Ludovic Drolez +Build-Depends: debhelper (>= 10), groff-base +Standards-Version: 4.5.1 + +Package: lookup +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: edict, kanjidic +Description: interactive utility to search text files quickly + It provides: Romaji-to-Kana Converter, Fuzzy Searching, + Search with Regular Expressions, Filtering, Automatic Modifications, + Smart Word-Preference Mode. --- lookup-1.08b.orig/debian/copyright +++ lookup-1.08b/debian/copyright @@ -0,0 +1,21 @@ +This package was debianized by Hayao Nakahara on +Tue, 19 Oct 1999 00:24:21 +0900. + +It was downloaded from + ftp://ftp.cc.monash.edu.au/pub/nihongo/ + +Upstream Author: Jeffrey Friedl + +Copyright: Each source file has the following copyright notice: + +/* + * jfriedl@nff.ncl.omron.co.jp + * + * This work is placed under the terms of the GNU General Purpose Licence + * (the "GNU Copyleft"). + * + * December 1993. + */ + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. --- lookup-1.08b.orig/debian/dirs +++ lookup-1.08b/debian/dirs @@ -0,0 +1,6 @@ +usr/bin +usr/sbin +var/lib/lookup +usr/share/doc/lookup +usr/share/man/man1 +usr/share/man/man8 --- lookup-1.08b.orig/debian/docs +++ lookup-1.08b/debian/docs @@ -0,0 +1,6 @@ +README +README.JAP +README.nec +dot-lookup.jfriedl +net.announcement +net.announcement.japanese --- lookup-1.08b.orig/debian/dot-lookup +++ lookup-1.08b/debian/dot-lookup @@ -0,0 +1,42 @@ +## +## This is an example ~/.lookup file. +## + +## turn verbose mode off during startup file processing +verbose off + +prompt "%C([%#]%0)%!C(%w'*'%!f'raw '%n)> " +spinner 200 +pager on + +## The filter for edict will hit for entries that +## have only one English part, and that English part +## having a pl or pn designation. +load /var/lib/lookup/edict +filter "name" #^[^/]+/[^/]*[^/]*/$# +highlight on +word on + +## The filter for kanjidic will hit for entries without a +## frequency-of-use number. The modify spec will remove +## fields with the named initial code (U,N,Q,M,E, and Y) +load /var/lib/lookup/kanjidic +filter "uncommon" !// +modify /( [UNQMEY]\S+)+//g + +## Use the same filter for my local word file, +## but turn off by default. +load ~/lib/local.words +filter "name" #^[^/]+/[^/]*[^/]*/$# +filter off +highlight on +word on +## Want a tag for my local words, but only when +## accessed via the combo below +tag off "》" + +combine "words" 2 0 +select words + +## turn verbosity back on for interactive use. +verbose on --- lookup-1.08b.orig/debian/lookupconfig +++ lookup-1.08b/debian/lookupconfig @@ -0,0 +1,27 @@ +#!/bin/sh + +DICTS="compdic edict enamdict findic geodic kanjidic lifscdic" +DICTS212="edicth kanjd212" +DICDIR=/var/lib/lookup +EDICT=/usr/share/edict + +case $# in +0) +;; +*) DICTS=$@ +;; +esac + +cd $DICDIR +for d in $DICTS +do + rm -f $d $d.jin + if [ -f $EDICT/$d ]; then + ln -sf $EDICT/$d . + elif [ -f $EDICT/$d.gz ]; then + zcat $EDICT/$d.gz > $d + else + continue + fi + lookup -write $d +done --- lookup-1.08b.orig/debian/lookupconfig.man +++ lookup-1.08b/debian/lookupconfig.man @@ -0,0 +1,33 @@ +.TH lookupconfig 8 +.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection +.\" other parms are allowed: see man(7), man(1) +.SH NAME +lookupconfig \- program to create index files for lookup program. +.SH SYNOPSIS +.B lookupconfig +.br +.B lookupconfig +.I "dict ..." +.SH "DESCRIPTION" +.BR lookupconfig +make index files for lookup programs. +If arguments are given, +.BR lookupconfig +make index files of dictionaries +specified by arguments. +Without arguments, +.BR lookupconfig +make index files all available dictionaries. +.SH FILES +.TP +.I /usr/share/edict +Directory for dictionaries in +.I edict +format. +.TP +.I /var/lib/lookup +Directory for index files. +Symbolic links to dictionries must exists in this directory. +.SH AUTHOR +This manual page was written by Hayao Nakahara , +for the Debian GNU/Linux system (but may be used by others). --- lookup-1.08b.orig/debian/postinst +++ lookup-1.08b/debian/postinst @@ -0,0 +1,46 @@ +#! /bin/sh +# postinst script for lookup +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + lookupconfig + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- lookup-1.08b.orig/debian/prerm +++ lookup-1.08b/debian/prerm @@ -0,0 +1,43 @@ +#! /bin/sh +# prerm script for lookup +# +# see: dh_installdeb(1) + +DICTDIR=/var/lib/lookup + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ + +case "$1" in + remove) +# install-info --quiet --remove /usr/info/lookup.info.gz + cd $DICTDIR + rm -f * + ;; + upgrade|deconfigure) +# install-info --quiet --remove /usr/info/lookup.info.gz + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- lookup-1.08b.orig/debian/rules +++ lookup-1.08b/debian/rules @@ -0,0 +1,98 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +export CFLAGS := -Wall -g -DUSE_VSNPRINTF +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O3 +endif + +DH_STRIP=dh_strip +ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + DH_STRIP=true +endif + +build-arch: build +build-indep: build + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + dh_auto_build CFLAGS="$(CFLAGS)" + (cd doc; soelim lookup.man | iconv -feucjp -tutf8) > lookup.man + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + rm -f lookup.man + + # Add here commands to clean up after the build process. + $(MAKE) clean + -rm -f lookup + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Add here commands to install the package into debian/lookup. + #$(MAKE) install DESTDIR=$(CURDIR)/debian/lookup + + install -m 755 lookup debian/lookup/usr/bin/lookup + install -m 755 debian/lookupconfig debian/lookup/usr/sbin/lookupconfig + install -m 644 lookup.man \ + debian/lookup/usr/share/man/man1/lookup.1 + install -m 644 debian/lookupconfig.man \ + debian/lookup/usr/share/man/man8/lookupconfig.8 +# install -m 644 CHANGES debian/lookup/usr/share/doc/lookup/changelog + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installemacsen +# dh_installpam +# dh_installinit + dh_installcron + dh_installman + dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + $(DH_STRIP) + dh_compress + dh_fixperms + # You may want to make some executables suid here. +# dh_suidregister +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure + --- lookup-1.08b.orig/debian/source/format +++ lookup-1.08b/debian/source/format @@ -0,0 +1 @@ +1.0 --- lookup-1.08b.orig/lib/config.h +++ lookup-1.08b/lib/config.h @@ -1,5 +1,10 @@ #ifndef __CONFIG_H__ /* file wrapper */ #define __CONFIG_H__ + +#include +#include +#include + /* * Jeffrey Friedl * Omron Corporation オムロン(株) --- lookup-1.08b.orig/lib/input.c +++ lookup-1.08b/lib/input.c @@ -24,8 +24,6 @@ #include "assert.h" #include "output.h" #include "input.h" -extern int errno; - static unsigned char input_buffer[INPUT_BUF_SIZE]; #define eptr (&input_buffer[INPUT_BUF_SIZE]) --- lookup-1.08b.orig/lib/jregex.c +++ lookup-1.08b/lib/jregex.c @@ -1896,14 +1896,18 @@ /* we construct a character class specifier which is the same and use that... */ int inverted = isupper(PAT[1]); - unsigned char class[4]; - class[0] = '\\'; - class[1] = inverted ? tolower(PAT[1]) : PAT[1]; - class[2] = ']'; - class[3] = '\0'; + unsigned char class[5]; + int i = 0; + if (inverted) { + class[i++] = '^'; + } + class[i++] = '\\'; + class[i++] = inverted ? tolower(PAT[1]) : PAT[1]; + class[i++] = ']'; + class[i++] = '\0'; if (nab_class(new, class) == 0) return 0; - new->u.class->inverted = inverted; + /* new->u.class->inverted = inverted; */ new->min_match_len = 1; PAT += 2; /* skip past \d, etc. */ goto allow_starplus; /* can have a +, *, or ? appended */ @@ -4049,7 +4053,10 @@ } #endif +#ifndef FAST_REGEXE +/* FASTDEBUGSTUFF( +*/ if (special_debug) { outputf("popping state #%ld (total %ld): [%.*s|%s] regex %d.\n", state_count(), @@ -4077,7 +4084,11 @@ #else -1 #endif - );) + ); +/* +) +*/ +#endif } else { --- lookup-1.08b.orig/lib/output.c +++ lookup-1.08b/lib/output.c @@ -12,6 +12,8 @@ #include "assert.h" #include #include +#include +#include #include "input.h" #include "output.h" @@ -29,7 +31,7 @@ #define THREE_BYTE_HI 143 #define HALF_WIDTH_KATA_HI 142 -unsigned const char *jis_start_208 = (unsigned const char *)"\33$@"; +unsigned const char *jis_start_208 = (unsigned const char *)"\33$B"; unsigned const char *jis_start_212 = (unsigned const char *)"\33$(D"; unsigned const char *jis_start_ASCII = (unsigned const char *)"\33(B"; unsigned const char *jis_start_kana = (unsigned const char *)"\33(I"; @@ -754,8 +756,6 @@ case 'n': /* errno string */ case 'N': /* errno string */ { - extern char *sys_errlist[]; - extern int errno, sys_nerr; char temp_error_buff[20]; const char *str; @@ -769,13 +769,7 @@ else errval = errno; - if (errval >= 0 && errval < sys_nerr) - str = sys_errlist[errval]; - else - { - sprintf(temp_error_buff, "#%d", errval); - str = temp_error_buff; - } + str = strerror(errval); } if (format[-2] == '%') @@ -899,7 +893,7 @@ #if PROVIDE_PAGER -static unsigned (*_real_output_char_function)(unsigned char) = 0; +unsigned (*_real_output_char_function)(unsigned char) = 0; /* * output_pager_status(0) turns off and reports previous state. --- lookup-1.08b.orig/lib/termset.c +++ lookup-1.08b/lib/termset.c @@ -39,8 +39,13 @@ # ifdef _HAVE_SYS_TERMIO_H_ # include # else -# include -# endif +# ifdef _HAVE_TERMIO_H_ +# include +# define _HAVE_SYS_TERMIO_H_ +# else +# include +# endif /* _HAVE_TERMIO_H */ +# endif /* _HAVE_SYS_TERMIO_H */ #endif /* @@ -49,6 +54,8 @@ * of the header files. This is all very non-portable, but the best * I can think of to automate this stuff.... */ +#ifndef __alpha__ +/* DEBIAN: these tests will make gcc 3.3 fail on alpha/gnu linux */ #ifndef NO_COMPILE # ifdef __STDC__ # ifdef _IO @@ -66,6 +73,8 @@ # endif /* __STDC__ */ #endif +#endif + #ifndef NO_COMPILE # ifdef __STDC__ # define NO_ARGS void --- lookup-1.08b.orig/lib/xmalloc.c +++ lookup-1.08b/lib/xmalloc.c @@ -1,18 +1,19 @@ #include "xmalloc.h" -#undef xmalloc +#include +#include /* * like malloc(), but dies if memory not available. */ -void *xmalloc(unsigned len) +void *xmalloc(unsigned int len) { void *ptr; - if (ptr = (void *)malloc(len), ptr == 0) + ptr = malloc(len); + if (ptr == NULL) { - #define MSG "\n" - write(2, MSG, sizeof(MSG)-1); - exit(3); + fprintf(stderr, "\n"); + exit(3); } return ptr; } --- lookup-1.08b.orig/lookup.c +++ lookup-1.08b/lookup.c @@ -32,7 +32,7 @@ const char *expand_filename_tilde(const char *filename) { - extern const char *getenv(const char *); + /* extern const char *getenv(const char *); */ String *home = (String*)getenv("HOME"); if (home == 0 || filename[0] != '~' || filename[1] != '/') return filename; @@ -77,7 +77,7 @@ * Getline: get a line of user input. */ static __inline__ string * -getline(String *prompt) +mygetline(String *prompt) { #ifdef NOREADLINE static string linebuf[200]; @@ -114,11 +114,17 @@ output_pager_reset_more(); line = readline(prompt); /* Get a line from the user. */ +#if 0 +fprintf(stdout, "OK readline:%s\n",line); /* nakahara */ +#endif output_pager_reset_more(); #ifdef LOG_FILE_SUPPORT if (current_log_file != 0) { int normal_fd = set_normal_output_file(log_fd); +#if 0 +fprintf(stdout, "OK outputf \n"); /* nakahara */ +#endif outputf("%s%s\n", jreadline_last_prompt, line); flush_output(); set_normal_output_file(normal_fd); @@ -265,6 +271,9 @@ if (in_command != old_in_command) { +#if 0 +fprintf(stdout, "OK mod \n"); /* nakahara */ +#endif (void)jreadline_mod_prompt(gen_prompt(lookup.prompt_format, 0)); return 1; } @@ -1464,6 +1473,7 @@ GET_WINDOW_SIZE(0); #endif +fprintf(stdout, "start \n"); /* nakahara */ /* set some basic defaults */ lookup.flag.fuzz = 1; lookup.flag.fold = 1; @@ -1499,7 +1509,7 @@ in_command = 0; kibishii_assert(prompt_format); - input = getline(gen_prompt(prompt_format, 1)); + input = mygetline(gen_prompt(prompt_format, 1)); /* if they're pounding on the break key, let them eventually leave */ if (apply_regex_abort) --- lookup-1.08b.orig/lookup.h +++ lookup-1.08b/lookup.h @@ -16,6 +16,8 @@ * close there, it's been stripped and you're screwed. */ +#include + #ifndef MAX_LOADED_FILES # define MAX_LOADED_FILES 10 #endif