mirror of
https://git.openwrt.org/feed/routing.git
synced 2024-06-16 04:04:04 +02:00
ohybridproxy: Properly search for libubox/utils.h
Fixes build error with external toolchains: /local/users/fainelli/openwrt/trunk/build_dir/target-mipsel-linux-gnu_glibc/ohybridproxy-2016-06-28-8a28ae92c97099e771c9ede5641e3782ae809c27/src/util.h:32:27: fatal error: libubox/utils.h: No such file or directory #include <libubox/utils.h> ^ compilation terminated. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
This commit is contained in:
parent
6ad08f74da
commit
b09c768149
26
ohybridproxy/patches/0001-find-libubox.patch
Normal file
26
ohybridproxy/patches/0001-find-libubox.patch
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
From c015e7e62ed4c7645595f7f83cf156810433d0cd Mon Sep 17 00:00:00 2001
|
||||||
|
From: Florian Fainelli <f.fainelli@gmail.com>
|
||||||
|
Date: Mon, 5 Jun 2017 17:56:33 -0700
|
||||||
|
Subject: [PATCH] Cmake: Search and find libubox/utils.h
|
||||||
|
|
||||||
|
---
|
||||||
|
CMakeLists.txt | 3 +++
|
||||||
|
1 file changed, 3 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 2556669d2a52..1c970d92ff56 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -16,6 +16,9 @@ else(${APPLE})
|
||||||
|
set(dns_sd "dns_sd")
|
||||||
|
endif(${APPLE})
|
||||||
|
|
||||||
|
+FIND_PATH(ubox_include_dir libubox/utils.h)
|
||||||
|
+INCLUDE_DIRECTORIES(${ubox_include_dir})
|
||||||
|
+
|
||||||
|
set(CORE src/cache.c src/io.c src/socket.c)
|
||||||
|
|
||||||
|
add_executable(ohybridproxy src/ohybridproxy.c src/dns2mdns.c ${CORE})
|
||||||
|
--
|
||||||
|
2.9.3
|
||||||
|
|
Loading…
Reference in New Issue
Block a user