Import of pkgsrc-2014Q1

This commit is contained in:
2014-04-17 16:38:45 +02:00
parent 785076ae39
commit 9a8c06dafb
19365 changed files with 828089 additions and 278039 deletions

View File

@@ -0,0 +1,32 @@
$NetBSD: patch-dom_system_OSFileConstants.cpp,v 1.1 2014/03/30 01:03:22 ryoon Exp $
* NetBSD 5 does not support posix_spawn(3)
--- dom/system/OSFileConstants.cpp.orig 2014-03-15 05:19:14.000000000 +0000
+++ dom/system/OSFileConstants.cpp
@@ -9,11 +9,15 @@
#include "prsystem.h"
+#if defined(__NetBSD__)
+#include <sys/param.h>
+#endif
+
#if defined(XP_UNIX)
#include "unistd.h"
#include "dirent.h"
#include "sys/stat.h"
-#if !defined(ANDROID)
+#if !defined(ANDROID) && (defined(__NetBSD_) && (__NetBSD_Version__ < 600000000))
#include <spawn.h>
#endif // !defined(ANDROID)
#endif // defined(XP_UNIX)
@@ -508,7 +512,7 @@ static const dom::ConstantSpec gLibcProp
// The size of |time_t|.
{ "OSFILE_SIZEOF_TIME_T", INT_TO_JSVAL(sizeof (time_t)) },
-#if !defined(ANDROID)
+#if !defined(ANDROID) && (defined(__NetBSD_) && (__NetBSD_Version__ < 600000000))
// The size of |posix_spawn_file_actions_t|.
{ "OSFILE_SIZEOF_POSIX_SPAWN_FILE_ACTIONS_T", INT_TO_JSVAL(sizeof (posix_spawn_file_actions_t)) },
#endif // !defined(ANDROID)