mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 18:16:48 -04:00
An ABI-wrestling-suite of libraries and tools. Uses elfutils to diff, lint, compare and report on compatibility of ABIs in shared-libraries. Common use is diffing two .so's, like `abidiff libpkg.so libpkg-devel.so`
19 lines
507 B
C++
19 lines
507 B
C++
--- src/abg-tools-utils.cc.orig 2021-03-07 00:11:55 UTC
|
|
+++ src/abg-tools-utils.cc
|
|
@@ -1713,6 +1713,16 @@ struct malloced_char_star_deleter
|
|
{free(ptr);}
|
|
};
|
|
|
|
+#ifdef __FreeBSD__
|
|
+/* get_current_dir_name() is a GNU extension.
|
|
+ *
|
|
+ */
|
|
+char *get_current_dir_name()
|
|
+{
|
|
+return getcwd(nullptr, 0);
|
|
+}
|
|
+#endif
|
|
+
|
|
/// Return a copy of the path given in argument, turning it into an
|
|
/// absolute path by prefixing it with the concatenation of the result
|
|
/// of get_current_dir_name() and the '/' character.
|