1
0
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:
Koop Mast 2012-07-13 11:38:19 +00:00
parent 7be00ab876
commit 4214583699
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=300851
2 changed files with 18 additions and 0 deletions

View 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()

View 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})