mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-18 18:56:25 +00:00
Fixed some build issues for Asterisk application.
This commit is contained in:
parent
2aab552ef7
commit
e1b34d40d7
@ -103,8 +103,8 @@ static char *handle_cli_sdnagate(int fd, int argc, char *argv[])
|
|||||||
int len=0;
|
int len=0;
|
||||||
int instance=0;
|
int instance=0;
|
||||||
|
|
||||||
if (gatewayuri) free(gatewayuri);
|
if (gatewayspec) free(gatewayspec);
|
||||||
gatewayuri=NULL;
|
gatewayspec=NULL;
|
||||||
if (argc == 3 ) {
|
if (argc == 3 ) {
|
||||||
ast_cli(fd,"Serval DNA Gateway Function OFF.\n\n",len);
|
ast_cli(fd,"Serval DNA Gateway Function OFF.\n\n",len);
|
||||||
return RESULT_SUCCESS;
|
return RESULT_SUCCESS;
|
||||||
@ -114,9 +114,9 @@ static char *handle_cli_sdnagate(int fd, int argc, char *argv[])
|
|||||||
return RESULT_FAILURE;
|
return RESULT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
gatewayuri=strdup(argv[3]);
|
gatewayspec=strdup(argv[3]);
|
||||||
|
|
||||||
ast_cli(fd,"Serval DNA Gateway Function ON (trunk URI is %s/EXTENSION).\n\n",gatewayuri);
|
ast_cli(fd,"Serval DNA Gateway Function ON (trunk spec is %s).\n\n",gatewayspec);
|
||||||
return RESULT_SUCCESS;
|
return RESULT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ AC_PROG_CC
|
|||||||
|
|
||||||
AC_CHECK_LIB(c,srandomdev)
|
AC_CHECK_LIB(c,srandomdev)
|
||||||
|
|
||||||
AC_CHECK_HEADERS(stdio.h errno.h stdlib.h strings.h unistd.h string.h arpa/inet.h sys/socket.h sys/mman.h sys/time.h poll.h netdb.h linux/if.h linux/netlink.h linux/rtnetlink.h net/if.h netinet/in.h ifaddrs.h net/route.h)
|
AC_CHECK_HEADERS(stdio.h errno.h stdlib.h strings.h unistd.h string.h arpa/inet.h sys/socket.h sys/mman.h sys/time.h poll.h netdb.h linux/if.h linux/netlink.h linux/rtnetlink.h net/if.h netinet/in.h ifaddrs.h net/route.h signal.h)
|
||||||
|
|
||||||
echo "Fetching and building NaCl if required."
|
echo "Fetching and building NaCl if required."
|
||||||
echo "(this can take HOURS to build depending on your architecture,"
|
echo "(this can take HOURS to build depending on your architecture,"
|
||||||
|
1
mphlr.h
1
mphlr.h
@ -24,6 +24,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <signal.h>
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include "win32/win32.h"
|
#include "win32/win32.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user