diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-05 21:18:38 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-05 21:18:38 +0000 |
commit | ca3d7bcb3126761ac24ef4642964d7e16b1df428 (patch) | |
tree | e1e7daaca6abe9ca218985bc106bc2642a03e1ea /net-p2p/airdcpp-webclient/files/airdcpp-webclient-2.11.2-fix-odr.patch | |
parent | c66fa6cf106b825bcc6f1beeff9486ff08232cbe (diff) |
gentoo auto-resync : 05:11:2022 - 21:18:38
Diffstat (limited to 'net-p2p/airdcpp-webclient/files/airdcpp-webclient-2.11.2-fix-odr.patch')
-rw-r--r-- | net-p2p/airdcpp-webclient/files/airdcpp-webclient-2.11.2-fix-odr.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net-p2p/airdcpp-webclient/files/airdcpp-webclient-2.11.2-fix-odr.patch b/net-p2p/airdcpp-webclient/files/airdcpp-webclient-2.11.2-fix-odr.patch new file mode 100644 index 000000000000..e44365ca1bd2 --- /dev/null +++ b/net-p2p/airdcpp-webclient/files/airdcpp-webclient-2.11.2-fix-odr.patch @@ -0,0 +1,22 @@ +From 5f12f803c2fc0450111152e2ea5f649ed92f4b7f Mon Sep 17 00:00:00 2001 +From: maksis <maksis@adrenaline-network.com> +Date: Thu, 13 Oct 2022 22:05:35 +0300 +Subject: [PATCH] Build: define the HAVE_POSIX_FADVISE flag correctly + +Fixes https://github.com/airdcpp-web/airdcpp-webclient/issues/425 +--- + airdcpp-core/CMakeLists.txt | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +--- a/airdcpp-core/CMakeLists.txt ++++ b/airdcpp-core/CMakeLists.txt +@@ -75,8 +75,7 @@ if (HAVE_MNTENT_H) + endif (HAVE_MNTENT_H) + + if (HAVE_POSIX_FADVISE) +- set_property(SOURCE ${PROJECT_SOURCE_DIR}/airdcpp/File.cpp PROPERTY COMPILE_DEFINITIONS HAVE_POSIX_FADVISE APPEND) +- set_property(SOURCE ${PROJECT_SOURCE_DIR}/airdcpp/File.h PROPERTY COMPILE_DEFINITIONS HAVE_POSIX_FADVISE APPEND) ++ add_definitions (-DHAVE_POSIX_FADVISE) + endif (HAVE_POSIX_FADVISE) + + |