summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Pratt <mcpratt@pm.me>2024-04-08 15:15:31 -0400
committerRobert Marko <robimarko@gmail.com>2024-04-25 21:33:51 +0200
commit1991bfb8143d29d619a0a389db84dcb512b9a719 (patch)
treeef07d7dfb20d667d8c1250df63e6770f191000e0
parentddb7177c57e1515d9b170a2a35c2d2f341311a05 (diff)
downloadopenwrt-1991bfb8143d29d619a0a389db84dcb512b9a719.tar.gz
openwrt-1991bfb8143d29d619a0a389db84dcb512b9a719.tar.bz2
openwrt-1991bfb8143d29d619a0a389db84dcb512b9a719.zip
tools/elfutils: refresh portability patch for macOS
Quilt refresh combined two sets of changes to the same file. The switch from using libgen.h to dirname.h because of function poisoning from gnulib's import of basename() was added as a new patch hunk instead of an edit to the original one. The original patch hunk was to fix build errors on an earlier version of elfutils before the "dirname" module was being imported to fix further build errors with the 0.191 version. Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS Signed-off-by: Michael Pratt <mcpratt@pm.me> Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
-rw-r--r--tools/elfutils/patches/100-portability.patch34
1 files changed, 5 insertions, 29 deletions
diff --git a/tools/elfutils/patches/100-portability.patch b/tools/elfutils/patches/100-portability.patch
index 9a111c76d9..1a61455f48 100644
--- a/tools/elfutils/patches/100-portability.patch
+++ b/tools/elfutils/patches/100-portability.patch
@@ -351,7 +351,7 @@
#include <libdwfl.h>
#include <libebl.h>
+#include <libeu.h>
-+#include <libgen.h>
++#include <dirname.h>
#include <assert.h>
#include <dirent.h>
#include <errno.h>
@@ -373,7 +373,7 @@
+#include <libeu.h>
#include <libdw.h>
#include <dwarf.h>
-+#include <libgen.h>
++#include <dirname.h>
/* Known location expressions already decoded. */
@@ -893,32 +893,8 @@
@@ -27,6 +27,7 @@
the GNU Lesser General Public License along with this program. If
not, see <http://www.gnu.org/licenses/>. */
-
+
+#include <config.h>
#include <stddef.h>
-
-
---- a/libdw/libdwP.h
-+++ b/libdw/libdwP.h
-@@ -35,7 +35,7 @@
- #include <libeu.h>
- #include <libdw.h>
- #include <dwarf.h>
--#include <libgen.h>
-+#include <dirname.h>
-
-
- /* Known location expressions already decoded. */
-
---- a/libdwfl/libdwflP.h
-+++ b/libdwfl/libdwflP.h
-@@ -32,7 +32,7 @@
- #include <libdwfl.h>
- #include <libebl.h>
- #include <libeu.h>
--#include <libgen.h>
-+#include <dirname.h>
- #include <assert.h>
- #include <dirent.h>
- #include <errno.h>
-
+
+