Import of pkgsrc-2015Q3

This commit is contained in:
2015-10-03 03:37:01 -07:00
committed by Lionel Sambuc
parent f641581404
commit 9d819b6d54
7578 changed files with 228314 additions and 80018 deletions

View File

@@ -0,0 +1,21 @@
$NetBSD: patch-src_engine_socket.cpp,v 1.1 2015/07/08 16:46:43 richard Exp $
upstream workaround for clash with 'struct mutex' on SunOS
--- src/engine/socket.cpp.orig 2015-03-20 04:30:04.000000000 +0000
+++ src/engine/socket.cpp
@@ -19,6 +19,7 @@
#include "mutex.h"
#include "socket.h"
#ifndef __WXMSW__
+ #define mutex mutex_override // Sadly on some platforms system headers include conflicting names
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
@@ -29,6 +30,7 @@
#if !defined(MSG_NOSIGNAL) && !defined(SO_NOSIGPIPE)
#include <signal.h>
#endif
+ #undef mutex
#endif
// Fixups needed on FreeBSD