Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -1,15 +1,15 @@
$NetBSD: patch-src_mongo_db_repl_isself.c,v 1.2 2015/08/26 05:03:00 fhajny Exp $
$NetBSD: patch-src_mongo_db_repl_isself.c,v 1.3 2016/02/12 03:37:24 ryoon Exp $
* Add NetBSD support.
--- src/mongo/db/repl/isself.cpp.orig 2015-08-24 00:39:52.000000000 +0000
--- src/mongo/db/repl/isself.cpp.orig 2016-01-05 18:31:44.000000000 +0000
+++ src/mongo/db/repl/isself.cpp
@@ -48,7 +48,7 @@
#include "mongo/util/log.h"
#if defined(__linux__) || defined(__APPLE__) || defined(__freebsd__) || defined(__sunos__) || \
- defined(__openbsd__)
+ defined(__openbsd__) || defined(__netbsd__)
#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun) || \
- defined(__OpenBSD__)
+ defined(__OpenBSD__) || defined(__DragonFly__) || defined(__NetBSD__)
#define FASTPATH_UNIX 1
#endif
@@ -17,8 +17,8 @@ $NetBSD: patch-src_mongo_db_repl_isself.c,v 1.2 2015/08/26 05:03:00 fhajny Exp $
#include <ifaddrs.h>
#include <netdb.h>
-#ifdef __freebsd__
+#if defined __freebsd__ || defined __netbsd__
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__)
#include <netinet/in.h>
#endif