freebsd-ports/sysutils/prelink/files/patch-gelfx-gelfx.h
Martin Wilke ca38a36b6d ELF prelinking utility to speed up dynamic linking.
WWW: http://people.redhat.com/jakub/prelink/

PR:		ports/176283
Submitted by:	Damjan Jovanovic <damjan.jov@gmail.com>
2013-02-21 00:50:10 +00:00

17 lines
403 B
C

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