Skip to content
Snippets Groups Projects
Commit e64b9e6d authored by Anthony Léonard's avatar Anthony Léonard Committed by Guillaume Roguez
Browse files

contrib: restbed can now be compiled on mingw32 target

Change-Id: I10fc2928c110de960ef99e4ed3a33c9880c72b75
Tuleap: #1042
parent 27cceaf0
Branches
Tags
No related merge requests found
......@@ -22,9 +22,7 @@
RESTBED_VERSION := 34187502642144ab9f749ab40f5cdbd8cb17a54a
RESTBED_URL := https://github.com/Corvusoft/restbed/archive/$(RESTBED_VERSION).tar.gz
ifndef HAVE_WIN32
PKGS += restbed
endif
ifeq ($(call need_pkg,"restbed >= 4.0"),)
PKGS_FOUND += restbed
......@@ -45,6 +43,7 @@ restbed: restbed-$(RESTBED_VERSION).tar.gz
$(UNPACK)
$(APPLY) $(SRC)/restbed/CMakeLists.patch
$(APPLY) $(SRC)/restbed/strand.patch
$(APPLY) $(SRC)/restbed/uri_cpp.patch
$(MOVE)
.restbed: restbed toolchain.cmake
......
--- a/source/corvusoft/restbed/uri.cpp 2016-04-14 21:38:26.000000000 +0000
+++ b/source/corvusoft/restbed/uri.cpp 2016-09-30 18:55:09.304594102 +0000
@@ -8,9 +8,9 @@
#include <cstdlib>
#include <stdexcept>
-#if defined(WIN32)
+#if defined(_WIN32)
#include <ciso646>
- #include <Winsock2.h>
+ #include <winsock2.h>
#pragma comment( lib, "Ws2_32.lib" )
#else
#include <netdb.h>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment