mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
26 lines
622 B
Plaintext
26 lines
622 B
Plaintext
$NetBSD: patch-ad,v 1.3 2014/09/25 13:47:59 jperkin Exp $
|
|
|
|
--- gmp/device.cc.orig 2004-09-24 02:12:20.000000000 +0000
|
|
+++ gmp/device.cc
|
|
@@ -14,7 +14,11 @@
|
|
extern "C" {
|
|
#include <sys/fcntl.h>
|
|
#include <sys/wait.h>
|
|
+#ifdef __sun
|
|
+#include <fcntl.h>
|
|
+#endif
|
|
#include <unistd.h>
|
|
+#include <signal.h>
|
|
}
|
|
|
|
using namespace gmp;
|
|
@@ -358,7 +362,7 @@ bool Device::fork_child(const std::strin
|
|
close(c2p[0]);
|
|
close(c2p[1]);
|
|
// close(2); // close cerr
|
|
- char * shell = "/bin/bash";
|
|
+ char * shell = "/bin/sh";
|
|
std::string c = std::string("exec ") + n;
|
|
execl(shell, shell, "-c", c.c_str(), 0);
|
|
// exec failed!
|