Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
$NetBSD: patch-ai,v 1.1.1.1 1999/12/20 03:05:16 hubertf Exp $
--- src/thotswap.c.orig Fri Dec 17 14:07:03 1999
+++ src/thotswap.c Mon Dec 20 03:36:10 1999
@@ -40,7 +40,14 @@
#include<syslog.h>
#include<paths.h>
#include<pwd.h>
+#ifdef Linux
#include<features.h>
+#endif
+#ifdef __NetBSD__
+#include <sys/types.h>
+#include <machine/sysarch.h>
+#include <err.h>
+#endif
#ifdef __GLIBC__
#include<sys/perm.h>
#endif
@@ -350,10 +357,17 @@
/* get the necessary I/O permissions */
+#ifdef __NetBSD__
+ if (i386_iopl(3) == -1) {
+ warn("i386_iopl");
+ return 1;
+ }
+#else
if (ioperm(0xb2, 1, 1)) {
fprintf(stderr, "thotswap: can't get I/O permissions.\n");
return 1;
}
+#endif
/* do some quick checks on the laptop */