From 87472672a6ff218502ecaaadf7484220eab1de48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C5=93ur?= Date: Sat, 20 May 2023 06:17:24 +0200 Subject: [PATCH] build: fix xcode build (#5521) --- Transmission.xcodeproj/project.pbxproj | 31 ++++++++++++++++------- libtransmission/port-forwarding-natpmp.cc | 2 +- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/Transmission.xcodeproj/project.pbxproj b/Transmission.xcodeproj/project.pbxproj index c644f3b9c..b1eebfd55 100644 --- a/Transmission.xcodeproj/project.pbxproj +++ b/Transmission.xcodeproj/project.pbxproj @@ -3725,6 +3725,19 @@ buildSettings = { CLANG_CXX_LANGUAGE_STANDARD = "c++17"; CLANG_CXX_LIBRARY = "libc++"; + HEADER_SEARCH_PATHS = ( + "$(inherited)", + "third-party/dht", + "third-party/fast_float/include", + "third-party/wide-integer", + "third-party/libb64/include", + "third-party/libdeflate", + "third-party/libpsl/include", + "third-party/libutp/include", + "third-party/utfcpp/source", + "third-party/jsonsl", + "third-party/wildmat", + ); OTHER_CFLAGS = ( "$(inherited)", "-DWITH_UTP", @@ -3744,17 +3757,17 @@ "third-party/libb64/include", "third-party/libdeflate", "third-party/libevent/include", - "third-party/libnatpmp", + "third-party/libnatpmp/*.h", "third-party/libpsl/include", "third-party/libutp/include", - "third-party/miniupnpc", + "third-party/miniupnpc/*.h", "third-party/utfcpp/source", "third-party/wide-integer", "third-party/wildmat", ); USER_HEADER_SEARCH_PATHS = ( "$(inherited)", - "." + ., ); }; name = Debug; @@ -3998,17 +4011,17 @@ "third-party/libb64/include", "third-party/libdeflate", "third-party/libevent/include", - "third-party/libnatpmp", + "third-party/libnatpmp/*.h", "third-party/libpsl/include", "third-party/libutp/include", - "third-party/miniupnpc", + "third-party/miniupnpc/*.h", "third-party/utfcpp/source", "third-party/wide-integer", "third-party/wildmat", ); USER_HEADER_SEARCH_PATHS = ( "$(inherited)", - ".", + ., ); }; name = Release; @@ -4324,17 +4337,17 @@ "third-party/libb64/include", "third-party/libdeflate", "third-party/libevent/include", - "third-party/libnatpmp", + "third-party/libnatpmp/*.h", "third-party/libpsl/include", "third-party/libutp/include", - "third-party/miniupnpc", + "third-party/miniupnpc/*.h", "third-party/utfcpp/source", "third-party/wide-integer", "third-party/wildmat", ); USER_HEADER_SEARCH_PATHS = ( "$(inherited)", - ".", + ., ); }; name = "Release - Debug"; diff --git a/libtransmission/port-forwarding-natpmp.cc b/libtransmission/port-forwarding-natpmp.cc index 1700f7df6..65a8c8e64 100644 --- a/libtransmission/port-forwarding-natpmp.cc +++ b/libtransmission/port-forwarding-natpmp.cc @@ -13,7 +13,7 @@ #include #define ENABLE_STRNATPMPERR -#include +#include "natpmp.h" #define LIBTRANSMISSION_PORT_FORWARDING_MODULE