mirror of
https://github.com/fairwaves/openbts-2.8.git
synced 2025-11-04 05:53:17 +00:00
Alexander's build fixes
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3722 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
@@ -46,7 +46,6 @@ OpenBTS_LDADD = \
|
|||||||
|
|
||||||
OpenBTSCLI_SOURCES = OpenBTSCLI.cpp
|
OpenBTSCLI_SOURCES = OpenBTSCLI.cpp
|
||||||
OpenBTSDo_SOURCES = OpenBTSDo.cpp
|
OpenBTSDo_SOURCES = OpenBTSDo.cpp
|
||||||
OpenBTSCLI_LDADD = -lreadline -lncurses
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
OpenBTS.example.sql
|
OpenBTS.example.sql
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
@@ -29,9 +30,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
#include <time.h>
|
||||||
#define HAVE_LIBREADLINE
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_LIBREADLINE
|
#ifdef HAVE_LIBREADLINE
|
||||||
# include <readline/readline.h>
|
# include <readline/readline.h>
|
||||||
@@ -51,7 +50,7 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
char rspPath[200];
|
char rspPath[200];
|
||||||
sprintf(rspPath,"/tmp/OpenBTS.console.%d.%8x",getpid(),time(NULL));
|
sprintf(rspPath,"/tmp/OpenBTS.console.%d.%8lx",getpid(),time(NULL));
|
||||||
|
|
||||||
|
|
||||||
printf("command socket path is %s\n", cmdPath);
|
printf("command socket path is %s\n", cmdPath);
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ PKG_CHECK_MODULES(ORTP, ortp)
|
|||||||
PKG_CHECK_MODULES(LIBUSB, libusb-1.0)
|
PKG_CHECK_MODULES(LIBUSB, libusb-1.0)
|
||||||
|
|
||||||
# Prepends -lreadline to LIBS and defines HAVE_LIBREADLINE in config.h
|
# Prepends -lreadline to LIBS and defines HAVE_LIBREADLINE in config.h
|
||||||
#AC_CHECK_LIB(readline, readline)
|
AC_CHECK_LIB(readline, readline)
|
||||||
|
|
||||||
dnl Output files
|
dnl Output files
|
||||||
AC_CONFIG_FILES([\
|
AC_CONFIG_FILES([\
|
||||||
|
|||||||
Reference in New Issue
Block a user