Fixed compile errors under FreeBSD.
FossilOrigin-Name: 65d9a4b89ff97013aaac7917f976dd20930d2d0e26c07f4e53c9663b32931475
This commit is contained in:
parent
48dff6314d
commit
2c2f8fe81e
@ -10,7 +10,7 @@ USE_CONTRIB_OPENSSL=1
|
|||||||
|
|
||||||
# GnuTLS definitions
|
# GnuTLS definitions
|
||||||
GNUTLS_VERSION=3.3.9
|
GNUTLS_VERSION=3.3.9
|
||||||
USE_CONTRIB_GNUTLS=1
|
USE_CONTRIB_GNUTLS=0
|
||||||
|
|
||||||
# Compiler to use
|
# Compiler to use
|
||||||
CC=clang
|
CC=clang
|
||||||
|
@ -16,6 +16,6 @@ GNUTLS_LDFLAGS=-L../contrib/gnutls-${GNUTLS_VERSION}/lib/.libs/
|
|||||||
else
|
else
|
||||||
GNUTLS_CFLAGS=
|
GNUTLS_CFLAGS=
|
||||||
GNUTLS_LIBS=
|
GNUTLS_LIBS=
|
||||||
GNUTLS_LDFLAGS=-lgnutls -nettle -lgmp
|
GNUTLS_LDFLAGS=-lgnutls -lnettle -lgmp
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
@ -201,7 +201,7 @@ O:=$(OBJS);
|
|||||||
OBJS:=$(patsubst %.o,$(ARCH)/%.o,$(OBJS))
|
OBJS:=$(patsubst %.o,$(ARCH)/%.o,$(OBJS))
|
||||||
|
|
||||||
#CFLAGS = -Wall -g -O3 -D_REENTRANT -DWITH_IPV6 -DWITH_RMAC_SUPPORT
|
#CFLAGS = -Wall -g -O3 -D_REENTRANT -DWITH_IPV6 -DWITH_RMAC_SUPPORT
|
||||||
CFLAGS = -Wall -g -O0 -D_REENTRANT -DWITH_IPV6 -DWITH_RMAC_SUPPORT
|
CFLAGS = -Wall -g -O0 -D_REENTRANT -DWITH_IPV6 -DWITH_RMAC_SUPPORT -I/usr/local/include
|
||||||
|
|
||||||
CFLAGS += $(GNUTLS_CFLAGS) \
|
CFLAGS += $(GNUTLS_CFLAGS) \
|
||||||
-DWITH_CW_LOG \
|
-DWITH_CW_LOG \
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#
|
||||||
#include "capwap.h"
|
#include "capwap.h"
|
||||||
|
|
||||||
int cw_readelem_capwap_local_ip_addr(struct sockaddr * local_ip, int type, uint8_t * msgelem, int len)
|
int cw_readelem_capwap_local_ip_addr(struct sockaddr * local_ip, int type, uint8_t * msgelem, int len)
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#ifndef __LWAPP_H
|
#ifndef __LWAPP_H
|
||||||
#define __LWAPP_H
|
#define __LWAPP_H
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user