From 4f7b683eb0df7d00b82e34b530082b4f60329ac7 Mon Sep 17 00:00:00 2001 From: Alexandre Janniaux Date: Mon, 12 Mar 2018 11:36:29 +0100 Subject: [PATCH] fix if defined TORRENT_ANDROID Fix malformed TORRENT_ANDROID macroprocessor tests, related to #2831 --- include/libtorrent/socket.hpp | 2 +- src/enum_net.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libtorrent/socket.hpp b/include/libtorrent/socket.hpp index bbd81e6d7..983f944c3 100644 --- a/include/libtorrent/socket.hpp +++ b/include/libtorrent/socket.hpp @@ -70,7 +70,7 @@ POSSIBILITY OF SUCH DAMAGE. #endif // NETLINK_NO_ENOBUFS exists at least since android 2.3, but is not exposed -#if TORRENT_ANDROID && !defined NETLINK_NO_ENOBUFS +#if defined TORRENT_ANDROID && !defined NETLINK_NO_ENOBUFS #define NETLINK_NO_ENOBUFS 5 #endif #endif diff --git a/src/enum_net.cpp b/src/enum_net.cpp index 4bc176f27..56cc7f73c 100644 --- a/src/enum_net.cpp +++ b/src/enum_net.cpp @@ -93,7 +93,7 @@ POSSIBILITY OF SUCH DAMAGE. #include #include -#if TORRENT_ANDROID && !defined IFA_F_DADFAILED +#if defined TORRENT_ANDROID && !defined IFA_F_DADFAILED #define IFA_F_DADFAILED 8 #endif