File:  [cvs.NetBSD.org] / pkgsrc / misc / chipmunk / patches / patch-ab
Revision 1.3: download - view: text, annotated - select for diffs
Sun Jan 4 09:06:17 2015 UTC (10 years ago) by dholland
Branches: MAIN
CVS tags: HEAD
Remove ONLY_FOR_PLATFORM and fix amd64 netbsd build. The package appears
to support at least some other OSes and machines, so leave it unrestricted
until we find what it really does and doesn't work on.

$NetBSD: patch-ab,v 1.3 2015/01/04 09:06:17 dholland Exp $

--- config.h.orig	Thu Mar 23 10:38:56 1995
+++ config.h
@@ -108,6 +108,31 @@
 #   define USE_TESTS
 #endif
 
+#ifdef __NetBSD__
+#   define OPSYS "NetBSD"
+#   define USE_UNISTD
+#   define USE_CBREAK
+#   define USE_MMAP
+#   define USE_SIGNALS
+#   define USE_WAIT
+#   define UNIX
+#   define USE_ALLOCA
+#   define USE_READLINE
+#   define USE_MEMTEST
+#   define USE_TESTS
+#   define USE_SIGNAL_H
+#   define IN_OUT_INSTRUCTIONS
+#if defined(__x86_64__)
+#   define my_ioperm(x,y,z) x86_64_iopl(1)
+#elif defined(__i386__)
+#   define my_ioperm(x,y,z) i386_iopl(1)
+#else
+#   define my_ioperm(x,y,z) 0
+#endif
+
+#define SIGNAL_FUNCTION_CAST (void (*)())
+#endif
+
 /*
  * Here starts the section that provides defaults for most systems, that
  * can be overridden for a specific OS/compiler.

CVSweb <webmaster@jp.NetBSD.org>