]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
allow unix build without libedit
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 31 Dec 2008 19:44:16 +0000 (19:44 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 31 Dec 2008 19:44:16 +0000 (19:44 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11036 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/esl/Makefile
libs/esl/fs_cli.c

index c1d431f57e65ec491c2e4e66c96c1c8a789a874f..fab911e5a4eebf04f30e1cb3db3e71b3569912ce 100644 (file)
@@ -2,7 +2,7 @@ INCS=-Isrc/include
 LIBEDIT_DIR=../../libs/libedit
 DEBUG=-g -ggdb
 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
 LIBS=-lncurses -lpthread -lesl
 LDFLAGS=-L.
index 1d526207fd4fd558b73f90366d64086d4f2bbfc3..f672fdd9f2b0bdd200e50601de217b563695c92f 100644 (file)
 #else
 #include <sys/select.h>
 #include <unistd.h>
-#include <histedit.h>
-#ifndef HAVE_EDITLINE
-#define HAVE_EDITLINE
-#endif
 #endif
 
 #include <getopt.h>
 
+#ifdef HAVE_EDITLINE
+#include <histedit.h>
+#endif
+
 static char prompt_str[512] = "";
 
 typedef struct {