mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-05 10:48:03 -04:00
33 lines
1.0 KiB
C++
33 lines
1.0 KiB
C++
$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)
|