summaryrefslogtreecommitdiff
path: root/devel/libgtop/patches/patch-ab
blob: a10c4ef5cec630765681acbaed1cc9db89679fcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-ab,v 1.2 1998/11/01 23:07:30 tron Exp $

--- sysdeps/bsd/open.c.orig	Mon Aug 24 20:14:49 1998
+++ sysdeps/bsd/open.c	Sun Nov  1 23:40:07 1998
@@ -61,7 +61,15 @@
 	server->machine.gid = getgid ();
 	server->machine.egid = getegid ();
 
+#ifdef __NetBSD__
+#ifdef __NetBSD_Version__
+	server->os_version_code = __NetBSD_Version__;
+#else
+	server->os_version_code = 103000000;
+#endif
+#else
 	server->os_version_code = __FreeBSD_version;
+#endif
   
 	/* Setup machine-specific data */
 	server->machine.kd = kvm_open (NULL, NULL, NULL, O_RDONLY, "kvm_open");