Skip to content

Commit 08da074

Browse files
committed
Adjustments to fix build errors
1 parent 2968cd6 commit 08da074

5 files changed

Lines changed: 16 additions & 15 deletions

File tree

AdAway/jni/libpcap/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
LOCAL_PATH:= $(call my-dir)
22
include $(CLEAR_VARS)
33

4-
libpcap_PSRC = pcap-linux.c pcap-usb-linux.c pcap-can-linux.c pcap-netfilter-linux.c
4+
libpcap_PSRC = pcap-linux.c
55
libpcap_FSRC = fad-gifc.c
66
libpcap_CSRC = pcap.c inet.c gencode.c optimize.c nametoaddr.c etherent.c \
77
savefile.c sf-pcap.c sf-pcap-ng.c pcap-common.c \

AdAway/jni/libpcap/config.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,25 +75,25 @@
7575
/* #undef HAVE_LINUX_COMPILER_H */
7676

7777
/* Define to 1 if you have the <linux/ethtool.h> header file. */
78-
#define HAVE_LINUX_ETHTOOL_H 1
78+
/* #undef HAVE_LINUX_ETHTOOL_H */
7979

8080
/* Define to 1 if you have the <linux/if_packet.h> header file. */
81-
#define HAVE_LINUX_IF_PACKET_H 1
81+
/* #undef HAVE_LINUX_IF_PACKET_H */
8282

8383
/* Define to 1 if you have the <linux/net_tstamp.h> header file. */
84-
#define HAVE_LINUX_NET_TSTAMP_H 1
84+
/* #undef HAVE_LINUX_NET_TSTAMP_H */
8585

8686
/* if tp_vlan_tci exists */
87-
#define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
87+
/* #undef HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI */
8888

8989
/* Define to 1 if you have the <linux/types.h> header file. */
90-
#define HAVE_LINUX_TYPES_H 1
90+
/* #undef HAVE_LINUX_TYPES_H */
9191

9292
/* Define to 1 if you have the <linux/usbdevice_fs.h> header file. */
93-
#define HAVE_LINUX_USBDEVICE_FS_H 1
93+
/* #undef HAVE_LINUX_USBDEVICE_FS_H */
9494

9595
/* Define to 1 if you have the <linux/wireless.h> header file. */
96-
#define HAVE_LINUX_WIRELESS_H 1
96+
/* #undef HAVE_LINUX_WIRELESS_H */
9797

9898
/* Define to 1 if you have the <memory.h> header file. */
9999
#define HAVE_MEMORY_H 1
@@ -198,7 +198,7 @@
198198
#define HAVE_UNISTD_H 1
199199

200200
/* if struct usbdevfs_ctrltransfer has bRequestType */
201-
#define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
201+
/* #undef HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE */
202202

203203
/* define if version.h is generated in the build procedure */
204204
#define HAVE_VERSION_H 1
@@ -267,10 +267,10 @@
267267
/* #undef PCAP_SUPPORT_DBUS */
268268

269269
/* target host supports netfilter sniffing */
270-
#define PCAP_SUPPORT_NETFILTER 1
270+
/* #undef PCAP_SUPPORT_NETFILTER */
271271

272272
/* target host supports USB sniffing */
273-
#define PCAP_SUPPORT_USB 1
273+
/* #undef PCAP_SUPPORT_USB */
274274

275275
/* include ACN support */
276276
/* #undef SITA */

AdAway/jni/libpcap/pcap-linux.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ static const char rcsid[] _U_ =
115115
*/
116116

117117

118+
#ifndef _GNU_SOURCE
118119
#define _GNU_SOURCE
120+
#endif
119121

120122
#ifdef HAVE_CONFIG_H
121123
#include "config.h"

AdAway/jni/tcpdump/Android.mk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ LOCAL_CFLAGS += -DHAVE_CONFIG_H -D_U_="__attribute__((unused))"
4242

4343
LOCAL_C_INCLUDES += \
4444
$(LOCAL_PATH)/missing\
45-
external/openssl/include\
46-
external/libpcap
45+
$(LOCAL_PATH)/../libpcap
4746

48-
LOCAL_SHARED_LIBRARIES += libssl libcrypto
47+
#LOCAL_SHARED_LIBRARIES += libssl libcrypto
4948

5049
LOCAL_STATIC_LIBRARIES += libpcap
5150

AdAway/jni/tcpdump/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#define HAVE_INTTYPES_H 1
4040

4141
/* Define to 1 if you have the `crypto' library (-lcrypto). */
42-
#define HAVE_LIBCRYPTO 1
42+
/* #undef HAVE_LIBCRYPTO */
4343

4444
/* Define to 1 if you have the `rpc' library (-lrpc). */
4545
/* #undef HAVE_LIBRPC */

0 commit comments

Comments
 (0)