summaryrefslogtreecommitdiff
path: root/emulators/qemu/patches/patch-configure
blob: fad1d7d547298819c5be03e7b378b0841d0216e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-configure,v 1.7 2015/12/18 22:39:33 ryoon Exp $
Don't use gld on SunOS

--- configure.orig	2015-12-16 22:04:48.000000000 +0000
+++ configure
@@ -650,7 +650,6 @@ SunOS)
   solaris="yes"
   make="${MAKE-gmake}"
   install="${INSTALL-ginstall}"
-  ld="gld"
   smbd="${SMBD-/usr/sfw/sbin/smbd}"
   needs_libsunmath="no"
   solarisrev=`uname -r | cut -f2 -d.`
@@ -3935,8 +3934,12 @@ fi
 cat > $TMPC <<EOF
 #include <signal.h>
 #include <time.h>
+#include <sys/types.h>
+#include <sys/mman.h>
+#include <fcntl.h>
 int main(void) {
   timer_create(CLOCK_REALTIME, NULL, NULL);
+  shm_open(NULL, O_RDWR, 0644);
   return clock_gettime(CLOCK_REALTIME, NULL);
 }
 EOF