void-packages/srcpkgs/libabigail/patches/musl.patch
2020-03-03 13:26:12 +01:00

39 lines
905 B
Diff

--- include/abg-comparison.h.orig
+++ include/abg-comparison.h
@@ -27,6 +27,7 @@
#include <ostream>
+#include <sys/types.h>
#include "abg-cxx-compat.h"
#include "abg-corpus.h"
#include "abg-diff-utils.h"
#include "abg-ini.h"
--- src/abg-dwarf-reader.cc.orig
+++ src/abg-dwarf-reader.cc
@@ -37,6 +37,10 @@
#include <cmath>
#include <elfutils/libdwfl.h>
#include <dwarf.h>
+#include <elf.h>
+#ifndef EM_OPENRISC
+# define EM_OPENRISC 92
+#endif
#include <algorithm>
#include <iostream>
#include <tr1/unordered_map>
--- tools/abisym.cc.orig
+++ tools/abisym.cc
@@ -151,10 +151,10 @@
cout << "could not find symbol '"
<< opts.symbol_name
<< "' in file '";
- if (opts.absolute_path)
+ //if (opts.absolute_path)
cout << opts.elf_path << "'\n";
- else
- cout << basename(opts.elf_path);
+ //else
+ //cout << basename(opts.elf_path);
return 0;
}