]> git.draconx.ca Git - gentoo-draconx.git/blobdiff - dev-util/elftoaout/files/elftoaout-no-linux-elf.patch
dev-util/elftoaout: New package.
[gentoo-draconx.git] / dev-util / elftoaout / files / elftoaout-no-linux-elf.patch
diff --git a/dev-util/elftoaout/files/elftoaout-no-linux-elf.patch b/dev-util/elftoaout/files/elftoaout-no-linux-elf.patch
new file mode 100644 (file)
index 0000000..32b23be
--- /dev/null
@@ -0,0 +1,18 @@
+diff --git a/elftoaout-2.3/elftoaout.c b/elftoaout-2.3/elftoaout.c
+index 1f9b4c0..2b87e2e 100644
+--- a/elftoaout-2.3/elftoaout.c
++++ b/elftoaout-2.3/elftoaout.c
+@@ -21,12 +21,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <stdint.h>
+-#ifdef linux
+-#include <linux/elf.h>
+-#define ELFDATA2MSB   2
+-#else
+-#include <sys/elf.h>
+-#endif
++#include <elf.h>
+ static uint16_t swab16(uint16_t x)
+ {