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,18 @@
$NetBSD: patch-libpolyml_elfexport.cpp,v 1.1 2012/03/22 20:48:45 asau Exp $
--- libpolyml/elfexport.cpp.orig 2010-04-14 22:13:42.000000000 +0000
+++ libpolyml/elfexport.cpp
@@ -62,6 +62,13 @@
#ifdef HAVE_SYS_ELF_386_H
#include <sys/elf_386.h>
#endif
+#if defined(__NetBSD__) && defined(HOSTARCHITECTURE_X86_64)
+#include <i386/elf_machdep.h>
+#endif
+#if defined(__DragonFly__) && (defined(HOSTARCHITECTURE_X86) || defined(HOSTARCHITECTURE_X86_64))
+/* Missing definition taken from NetBSD: */
+#define R_386_PC32 2
+#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif