mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
eepp: fix missing include sys/select.h (#3103)
This commit is contained in:
committed by
Jérôme Duval
parent
bffc715646
commit
dfecbc2117
@@ -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="
|
||||
|
||||
33
games-engines/eepp/patches/eepp-0.9.5.patchset
Normal file
33
games-engines/eepp/patches/eepp-0.9.5.patchset
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user