summaryrefslogtreecommitdiffstats
path: root/patches/elfkickers-2.0a.orig/0004-04_bsd_include_elf.h.diff.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/elfkickers-2.0a.orig/0004-04_bsd_include_elf.h.diff.patch')
-rw-r--r--patches/elfkickers-2.0a.orig/0004-04_bsd_include_elf.h.diff.patch249
1 files changed, 249 insertions, 0 deletions
diff --git a/patches/elfkickers-2.0a.orig/0004-04_bsd_include_elf.h.diff.patch b/patches/elfkickers-2.0a.orig/0004-04_bsd_include_elf.h.diff.patch
new file mode 100644
index 000000000..69c465834
--- /dev/null
+++ b/patches/elfkickers-2.0a.orig/0004-04_bsd_include_elf.h.diff.patch
@@ -0,0 +1,249 @@
+From 34e5fd9f9893c1155b72b0358fb744abffa0f093 Mon Sep 17 00:00:00 2001
+From: the debian project <info@debian.org>
+Date: Thu, 11 Mar 2010 01:11:13 +0100
+Subject: [PATCH 4/6] 04_bsd_include_elf.h.diff
+
+---
+ ebfc/brainfuck.c | 4 ++++
+ ebfc/dynamic.c | 4 ++++
+ ebfc/ebfc.c | 4 ++++
+ ebfc/ehdr.c | 4 ++++
+ ebfc/elfparts.c | 4 ++++
+ ebfc/got.c | 4 ++++
+ ebfc/hash.c | 4 ++++
+ ebfc/phdrtab.c | 4 ++++
+ ebfc/progbits.c | 4 ++++
+ ebfc/rel.c | 4 ++++
+ ebfc/shdrtab.c | 4 ++++
+ ebfc/strtab.c | 4 ++++
+ ebfc/symtab.c | 4 ++++
+ rebind/rebind.c | 4 ++++
+ 14 files changed, 56 insertions(+), 0 deletions(-)
+
+diff --git a/ebfc/brainfuck.c b/ebfc/brainfuck.c
+index 0d87e21..ccfb755 100644
+--- a/ebfc/brainfuck.c
++++ b/ebfc/brainfuck.c
+@@ -8,7 +8,11 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stddef.h>
++#ifdef __linux__
+ #include <linux/elf.h>
++#else
++#include <elf.h>
++#endif
+ #include "elfparts.h"
+ #include "ebfc.h"
+
+diff --git a/ebfc/dynamic.c b/ebfc/dynamic.c
+index a92b447..b867716 100644
+--- a/ebfc/dynamic.c
++++ b/ebfc/dynamic.c
+@@ -5,7 +5,11 @@
+ */
+
+ #include <stdlib.h>
++#ifdef __linux__
+ #include <linux/elf.h>
++#else
++#include <elf.h>
++#endif
+ #include "elfparts.h"
+ #include "gen.h"
+
+diff --git a/ebfc/ebfc.c b/ebfc/ebfc.c
+index 1e971ce..b94270b 100644
+--- a/ebfc/ebfc.c
++++ b/ebfc/ebfc.c
+@@ -14,7 +14,11 @@
+ #include <fcntl.h>
+ #include <sys/stat.h>
+ #include <getopt.h>
++#ifdef __linux__
+ #include <linux/elf.h>
++#else
++#include <elf.h>
++#endif
+ #include "elfparts.h"
+ #include "ebfc.h"
+
+diff --git a/ebfc/ehdr.c b/ebfc/ehdr.c
+index f8048f9..7d84b3e 100644
+--- a/ebfc/ehdr.c
++++ b/ebfc/ehdr.c
+@@ -5,7 +5,11 @@
+ */
+
+ #include <stdlib.h>
++#ifdef __linux__
+ #include <linux/elf.h>
++#else
++#include <elf.h>
++#endif
+ #include "elfparts.h"
+ #include "gen.h"
+
+diff --git a/ebfc/elfparts.c b/ebfc/elfparts.c
+index bac38b9..312b60e 100644
+--- a/ebfc/elfparts.c
++++ b/ebfc/elfparts.c
+@@ -7,7 +7,11 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <errno.h>
++#ifdef __linux__
+ #include <linux/elf.h>
++#else
++#include <elf.h>
++#endif
+ #include "elfparts.h"
+ #include "gen.h"
+
+diff --git a/ebfc/got.c b/ebfc/got.c
+index f1e9986..3f584d1 100644
+--- a/ebfc/got.c
++++ b/ebfc/got.c
+@@ -5,7 +5,11 @@
+ */
+
+ #include <stdlib.h>
++#ifdef __linux__
+ #include <linux/elf.h>
++#else
++#include <elf.h>
++#endif
+ #include "elfparts.h"
+ #include "gen.h"
+
+diff --git a/ebfc/hash.c b/ebfc/hash.c
+index 1ee53fc..f359a2f 100644
+--- a/ebfc/hash.c
++++ b/ebfc/hash.c
+@@ -6,7 +6,11 @@
+
+ #include <stdlib.h>
+ #include <string.h>
++#ifdef __linux__
+ #include <linux/elf.h>
++#else
++#include <elf.h>
++#endif
+ #include "elfparts.h"
+ #include "gen.h"
+
+diff --git a/ebfc/phdrtab.c b/ebfc/phdrtab.c
+index d562d23..f4545ca 100644
+--- a/ebfc/phdrtab.c
++++ b/ebfc/phdrtab.c
+@@ -5,7 +5,11 @@
+ */
+
+ #include <stdlib.h>
++#ifdef __linux__
+ #include <linux/elf.h>
++#else
++#include <elf.h>
++#endif
+ #include "elfparts.h"
+ #include "gen.h"
+
+diff --git a/ebfc/progbits.c b/ebfc/progbits.c
+index 17a7533..8d7f93f 100644
+--- a/ebfc/progbits.c
++++ b/ebfc/progbits.c
+@@ -5,7 +5,11 @@
+ */
+
+ #include <stdlib.h>
++#ifdef __linux__
+ #include <linux/elf.h>
++#else
++#include <elf.h>
++#endif
+ #include "elfparts.h"
+ #include "gen.h"
+
+diff --git a/ebfc/rel.c b/ebfc/rel.c
+index 1c53d47..581de78 100644
+--- a/ebfc/rel.c
++++ b/ebfc/rel.c
+@@ -6,7 +6,11 @@
+
+ #include <stdlib.h>
+ #include <string.h>
++#ifdef __linux__
+ #include <linux/elf.h>
++#else
++#include <elf.h>
++#endif
+ #include "elfparts.h"
+ #include "gen.h"
+
+diff --git a/ebfc/shdrtab.c b/ebfc/shdrtab.c
+index 2ae0318..8a38c9c 100644
+--- a/ebfc/shdrtab.c
++++ b/ebfc/shdrtab.c
+@@ -5,7 +5,11 @@
+ */
+
+ #include <stdlib.h>
++#ifdef __linux__
+ #include <linux/elf.h>
++#else
++#include <elf.h>
++#endif
+ #include "elfparts.h"
+ #include "gen.h"
+
+diff --git a/ebfc/strtab.c b/ebfc/strtab.c
+index 02c91c3..cfa11dc 100644
+--- a/ebfc/strtab.c
++++ b/ebfc/strtab.c
+@@ -5,7 +5,11 @@
+ */
+
+ #include <stdlib.h>
++#ifdef __linux__
+ #include <linux/elf.h>
++#else
++#include <elf.h>
++#endif
+ #include <string.h>
+ #include "elfparts.h"
+ #include "gen.h"
+diff --git a/ebfc/symtab.c b/ebfc/symtab.c
+index 93dad34..d721f4f 100644
+--- a/ebfc/symtab.c
++++ b/ebfc/symtab.c
+@@ -6,7 +6,11 @@
+
+ #include <stdlib.h>
+ #include <string.h>
++#ifdef __linux__
+ #include <linux/elf.h>
++#else
++#include <elf.h>
++#endif
+ #include "elfparts.h"
+ #include "gen.h"
+
+diff --git a/rebind/rebind.c b/rebind/rebind.c
+index 5608cae..f740c47 100644
+--- a/rebind/rebind.c
++++ b/rebind/rebind.c
+@@ -7,7 +7,11 @@
+ #include <string.h>
+ #include <errno.h>
+ #include <unistd.h>
++#ifdef __linux__
+ #include <linux/elf.h>
++#else
++#include <elf.h>
++#endif
+
+ #ifndef TRUE
+ #define TRUE 1
+--
+1.7.0
+