mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 16:39:14 +00:00
allow unix build without libedit
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11036 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
42d9888c94
commit
20ca0c41a0
@ -2,7 +2,7 @@ INCS=-Isrc/include
|
|||||||
LIBEDIT_DIR=../../libs/libedit
|
LIBEDIT_DIR=../../libs/libedit
|
||||||
DEBUG=-g -ggdb
|
DEBUG=-g -ggdb
|
||||||
PICKY=-O2 -ffast-math -Wall -Werror -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
|
PICKY=-O2 -ffast-math -Wall -Werror -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
|
||||||
CFLAGS=$(INCS) $(DEBUG) -I$(LIBEDIT_DIR)/src/ $(PICKY)
|
CFLAGS=$(INCS) -DHAVE_EDITLINE $(DEBUG) -I$(LIBEDIT_DIR)/src/ $(PICKY)
|
||||||
MYLIB=libesl.a
|
MYLIB=libesl.a
|
||||||
LIBS=-lncurses -lpthread -lesl
|
LIBS=-lncurses -lpthread -lesl
|
||||||
LDFLAGS=-L.
|
LDFLAGS=-L.
|
||||||
|
@ -16,14 +16,14 @@
|
|||||||
#else
|
#else
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <histedit.h>
|
|
||||||
#ifndef HAVE_EDITLINE
|
|
||||||
#define HAVE_EDITLINE
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_EDITLINE
|
||||||
|
#include <histedit.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
static char prompt_str[512] = "";
|
static char prompt_str[512] = "";
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user