diff options
author | joerg <joerg@pkgsrc.org> | 2006-01-11 18:35:19 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-01-11 18:35:19 +0000 |
commit | d648e41c9a3659bff56a28b67eab659da4323e4a (patch) | |
tree | 0d7b0a5cec1043da1ef708fc34f234ce3550de8a /lang/yap/patches | |
parent | 376a6584f7a7b0b859ef4bfa4dc87699d354afd8 (diff) | |
download | pkgsrc-d648e41c9a3659bff56a28b67eab659da4323e4a.tar.gz |
Add DragonFly support.
Diffstat (limited to 'lang/yap/patches')
-rw-r--r-- | lang/yap/patches/patch-aa | 22 | ||||
-rw-r--r-- | lang/yap/patches/patch-ab | 22 | ||||
-rw-r--r-- | lang/yap/patches/patch-ac | 13 |
3 files changed, 57 insertions, 0 deletions
diff --git a/lang/yap/patches/patch-aa b/lang/yap/patches/patch-aa new file mode 100644 index 00000000000..0afab34a1a8 --- /dev/null +++ b/lang/yap/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.1 2006/01/11 18:35:19 joerg Exp $ + +--- C/sysbits.c.orig 2006-01-11 18:05:52.000000000 +0000 ++++ C/sysbits.c +@@ -195,7 +195,7 @@ InitPageSize(void) + GetSystemInfo(&si); + Yap_page_size = si.dwPageSize; + #elif HAVE_UNISTD_H +-#ifdef __FreeBSD__ ++#if defined(__FreeBSD__) || defined(__DragonFly__) + Yap_page_size = getpagesize(); + #elif defined(_AIX) + Yap_page_size = sysconf(_SC_PAGE_SIZE); +@@ -416,7 +416,7 @@ void Yap_cputime_interval(Int *now,Int * + #define TicksPerSec CLK_TCK + #endif + +-#if defined(__alpha) || defined(__FreeBSD__) || defined(__linux__) ++#if defined(__alpha) || defined(__FreeBSD__) || defined(__linux__) || defined(__DragonFly__) + + #if HAVE_TIME_H + #include <time.h> diff --git a/lang/yap/patches/patch-ab b/lang/yap/patches/patch-ab new file mode 100644 index 00000000000..a0696dd7bf6 --- /dev/null +++ b/lang/yap/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.1 2006/01/11 18:35:19 joerg Exp $ + +--- H/Yap.h.orig 2006-01-11 18:06:46.000000000 +0000 ++++ H/Yap.h +@@ -237,7 +237,7 @@ extern char Yap_Option[20]; + #endif + + #if !IN_SECOND_QUADRANT +-#if __linux__ || __FreeBSD__ || __NetBSD__ || mips || __APPLE__ ++#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(mips) || defined(__APPLE__) || defined(__DragonFly__) + #if defined(YAPOR) && defined(__alpha) + + #define MMAP_ADDR 0x40000000 +@@ -641,7 +641,7 @@ typedef enum + if you place things in the lower addresses (power to the libc people). + */ + +-#if (defined(_AIX) || defined(_WIN32) || defined(__APPLE__) || defined(sparc) || defined(__sparc) || defined(mips) || defined(__FreeBSD__) || defined(_POWER) || defined(__linux__) || defined(IN_SECOND_QUADRANT) || defined(__CYGWIN__)) ++#if (defined(_AIX) || defined(_WIN32) || defined(__APPLE__) || defined(sparc) || defined(__sparc) || defined(mips) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(_POWER) || defined(__linux__) || defined(IN_SECOND_QUADRANT) || defined(__CYGWIN__)) + #define USE_LOW32_TAGS 1 + #endif + diff --git a/lang/yap/patches/patch-ac b/lang/yap/patches/patch-ac new file mode 100644 index 00000000000..b5a3f15ef39 --- /dev/null +++ b/lang/yap/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1 2006/01/11 18:35:19 joerg Exp $ + +--- configure.orig 2006-01-11 18:15:45.000000000 +0000 ++++ configure +@@ -6058,7 +6058,7 @@ fi + INSTALL_DLLS="" + CC="cc -no-cpp-precomp" + ;; +- *netbsd*|*freebsd*) ++ *netbsd*|*freebsd*|*dragonfly*) + if echo __ELF__ | ${CC:-cc} -E - | grep -q __ELF__ + then + #an a.out system |