termux-packages/packages/elfutils/libdwflP.h.patch

15 lines
592 B
Diff
Raw Normal View History

2016-05-04 21:31:11 +02:00
diff -u -r ../elfutils-0.166/libdwfl/libdwflP.h ./libdwfl/libdwflP.h
--- ../elfutils-0.166/libdwfl/libdwflP.h 2016-01-12 07:49:19.000000000 -0500
+++ ./libdwfl/libdwflP.h 2016-05-04 13:21:07.997599838 -0400
@@ -771,5 +771,10 @@
/* The default used by dwfl_standard_find_debuginfo. */
#define DEFAULT_DEBUGINFO_PATH ":.debug:/usr/lib/debug"
+ /* canonicalize_file_name GNU extension - http://man7.org/linux/man-pages/man3/canonicalize_file_name.3.html */
+inline static char* canonicalize_file_name(const char *path)
+{
+ return realpath(path, NULL);
+}
#endif /* libdwflP.h */