]> git.draconx.ca Git - gentoo-draconx.git/blob - 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
1 diff --git a/elftoaout-2.3/elftoaout.c b/elftoaout-2.3/elftoaout.c
2 index 1f9b4c0..2b87e2e 100644
3 --- a/elftoaout-2.3/elftoaout.c
4 +++ b/elftoaout-2.3/elftoaout.c
5 @@ -21,12 +21,7 @@
6  #include <stdio.h>
7  #include <stdlib.h>
8  #include <stdint.h>
9 -#ifdef linux
10 -#include <linux/elf.h>
11 -#define ELFDATA2MSB   2
12 -#else
13 -#include <sys/elf.h>
14 -#endif
15 +#include <elf.h>
16  
17  static uint16_t swab16(uint16_t x)
18  {