eepp: fix missing include sys/select.h (#3103)

This commit is contained in:
Schrijvers Luc
2018-09-21 12:34:49 +00:00
committed by Jérôme Duval
parent bffc715646
commit dfecbc2117
2 changed files with 36 additions and 2 deletions

View File

@@ -4,12 +4,13 @@ cross-platform game development."
HOMEPAGE="https://bitbucket.org/SpartanJ/eepp"
COPYRIGHT="2011-2014 Martín Lucas Golini"
LICENSE="MIT"
REVISION="3"
REVISION="4"
SOURCE_URI="https://bitbucket.org/SpartanJ/eepp/get/release-0.9.5.tar.gz"
CHECKSUM_SHA256="b4094be1b29361c66ab15cae166576d3600f7b6d914b339af857878559156b48"
SOURCE_DIR="SpartanJ-eepp-b44ee6ad7704"
PATCHES="eepp-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="

View File

@@ -0,0 +1,33 @@
From 4584ab5f0cbd331411f96db30a20577bdf6b12c4 Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Fri, 21 Sep 2018 10:31:05 +0000
Subject: fix build with missing sys/select.h (fd_set)
diff --git a/src/eepp/network/csocketselector.cpp b/src/eepp/network/csocketselector.cpp
index 236d4c1..c1da2e0 100644
--- a/src/eepp/network/csocketselector.cpp
+++ b/src/eepp/network/csocketselector.cpp
@@ -2,6 +2,7 @@
#include <eepp/network/csocket.hpp>
#include <eepp/network/platform/platformimpl.hpp>
#include <utility>
+#include <sys/select.h>
#ifdef _MSC_VER
#pragma warning(disable : 4127) // "conditional expression is constant" generated by the FD_SET macro
diff --git a/src/eepp/network/ctcpsocket.cpp b/src/eepp/network/ctcpsocket.cpp
index 68cadbc..d506b93 100644
--- a/src/eepp/network/ctcpsocket.cpp
+++ b/src/eepp/network/ctcpsocket.cpp
@@ -4,6 +4,7 @@
#include <eepp/network/platform/platformimpl.hpp>
#include <algorithm>
#include <cstring>
+#include <sys/select.h>
#ifdef _MSC_VER
#pragma warning(disable : 4127) // "conditional expression is constant" generated by the FD_SET macro
--
2.19.0