mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
Fix build with gcc 4.7+ / libc++
PR: ports/169682 Submitted by: Jan Beich <jbeich@tormail.org>
This commit is contained in:
parent
7be00ab876
commit
4214583699
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=300851
10
net/libproxy/files/patch-libproxy_url.cpp
Normal file
10
net/libproxy/files/patch-libproxy_url.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
--- libproxy/url.cpp~
|
||||
+++ libproxy/url.cpp
|
||||
@@ -27,6 +27,7 @@
|
||||
#define close _close
|
||||
#endif
|
||||
#include <fcntl.h> // For ::open()
|
||||
+#include <unistd.h> // For close()
|
||||
#include <cstring> // For memcpy()
|
||||
#include <sstream> // For int/string conversion (using stringstream)
|
||||
#include <cstdio> // For sscanf()
|
8
net/libproxy/files/patch-utils-CMakeLists.txt
Normal file
8
net/libproxy/files/patch-utils-CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
||||
--- utils/CMakeLists.txt~
|
||||
+++ utils/CMakeLists.txt
|
||||
@@ -3,4 +3,5 @@ link_directories(${LIBPROXY_LIBRARY_DIRS
|
||||
|
||||
add_executable(proxy proxy.c)
|
||||
target_link_libraries(proxy libproxy)
|
||||
+set(CMAKE_C_COMPILER ${CMAKE_CXX_COMPILER})
|
||||
install(TARGETS proxy RUNTIME DESTINATION ${BIN_INSTALL_DIR})
|
Loading…
Reference in New Issue
Block a user