mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-01 10:49:26 +00:00
Fix HAVE_READLINE define setting
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@261 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
8c5c443c5e
commit
ed9fca1af3
2 changed files with 11 additions and 6 deletions
|
|
@ -36,10 +36,6 @@
|
|||
#include <linphonecore.h>
|
||||
#include "linphonec.h"
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#include <ws2tcpip.h>
|
||||
#include <ctype.h>
|
||||
|
|
@ -142,9 +138,12 @@ static char *sipAddr = NULL; /* for autocall */
|
|||
static ortp_socket_t client_sock=-1;
|
||||
char prompt[PROMPT_MAX_LEN];
|
||||
char sock_unix_path[128]={0};
|
||||
|
||||
#ifndef HAVE_READLINE
|
||||
static ortp_thread_t net_reader_th;
|
||||
static bool_t net_reader_run=FALSE;
|
||||
static ortp_socket_t server_sock;
|
||||
#endif
|
||||
|
||||
LinphoneCoreVTable linphonec_vtable = {
|
||||
show:(ShowInterfaceCb) stub,
|
||||
|
|
@ -672,10 +671,12 @@ linphonec_finish(int exit_status)
|
|||
linphonec_parse_command_line(&linphonec, "terminate");
|
||||
#ifdef HAVE_READLINE
|
||||
linphonec_finish_readline();
|
||||
#endif
|
||||
|
||||
#else
|
||||
if (net_reader_run)
|
||||
stop_net_reader();
|
||||
#endif
|
||||
|
||||
|
||||
linphone_core_uninit (&linphonec);
|
||||
|
||||
if (mylogfile != NULL && mylogfile != stdout)
|
||||
|
|
|
|||
|
|
@ -25,6 +25,10 @@
|
|||
#ifndef LINPHONEC_H
|
||||
#define LINPHONEC_H 1
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_READLINE_H
|
||||
#include <readline.h>
|
||||
#define HAVE_READLINE
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue