mirror of
https://github.com/troglobit/editline.git
synced 2025-09-16 08:28:09 +08:00
Minix editline v0.1.3
===================== Fix another build warning for Arm cross-gcc, which actually was v4.1.2 This time getpid() was missing unistd.h, but kill() was also missing signal.h. Added test for signal.h, but left out unistd.h since we already define SYS_UNIX -- which we should really check for instead... The rest are cosmetic prototype or automake/autoconf fixes.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
|
||||
lib_LIBRARIES = libedit.a
|
||||
|
||||
libedit_a_SOURCES = editline.c editline.h complete.c sysunix.c unix.h
|
||||
|
@@ -152,6 +152,7 @@ sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
lib_LIBRARIES = libedit.a
|
||||
libedit_a_SOURCES = editline.c editline.h complete.c sysunix.c unix.h
|
||||
all: all-am
|
||||
@@ -167,9 +168,9 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu src/Makefile
|
||||
$(AUTOMAKE) --foreign src/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
|
@@ -1119,7 +1119,7 @@ find_word()
|
||||
}
|
||||
|
||||
STATIC STATUS
|
||||
c_possible()
|
||||
c_possible(void)
|
||||
{
|
||||
CHAR **av;
|
||||
CHAR *word;
|
||||
@@ -1140,7 +1140,7 @@ c_possible()
|
||||
}
|
||||
|
||||
STATIC STATUS
|
||||
c_complete()
|
||||
c_complete(void)
|
||||
{
|
||||
CHAR *p, *q;
|
||||
CHAR *word, *new;
|
||||
|
@@ -16,6 +16,9 @@
|
||||
#ifdef HAVE_DIRENT_H
|
||||
#include <dirent.h>
|
||||
#endif
|
||||
#ifdef HAVE_SIGNAL_H
|
||||
#include <signal.h>
|
||||
#endif
|
||||
#ifdef SYS_UNIX
|
||||
#include "unix.h"
|
||||
#endif /* defined(SYS_UNIX) */
|
||||
@@ -65,7 +68,7 @@ extern int rl_intr;
|
||||
extern int rl_kill;
|
||||
extern int rl_quit;
|
||||
extern char *rl_complete();
|
||||
extern int rl_list_possib();
|
||||
extern int rl_list_possib(char *pathname, char ***avp);
|
||||
extern void rl_ttyset();
|
||||
extern void rl_add_slash();
|
||||
|
||||
|
@@ -8,6 +8,7 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if defined(USE_DIRENT)
|
||||
#include <dirent.h>
|
||||
|
Reference in New Issue
Block a user