summaryrefslogtreecommitdiff
path: root/sysutils/prelink/files/patch-gelfx-gelfx.h
blob: 0059d4089f958c90d3cf52238fe6e7a8790f1f72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -Nur gelfx/gelfx.h gelfx/gelfx.h
--- gelfx/gelfx.h	2013-02-19 23:54:34.000000000 +0200
+++ gelfx/gelfx.h	2013-02-19 23:50:32.000000000 +0200
@@ -19,8 +19,12 @@
 #ifndef GELFX_H
 #define	GELFX_H
 
+#include "../gelf/elf.h"
+#define _SYS_ELF32_H_ 1
+#define _SYS_ELF64_H_ 1
 #include <libelf.h>
-#include <gelf.h>
+#include "../gelf/gelf.h"
+#undef HAVE_GELFX_GETSHDR
 
 #ifndef HAVE_GELFX_GETSHDR