diff options
| author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2021-01-03 20:05:21 +0000 |
|---|---|---|
| committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2021-01-03 20:05:21 +0000 |
| commit | 424da78664140df43587069a30a22414156f4e6f (patch) | |
| tree | c8526f10172affef375b3598e520feaccdab80cc /science/udunits/files/patch-lib-xml.c | |
| parent | 23f93d6d1f6e2a8165034b5301ff2ddafd6c8039 (diff) | |
Update to 2.2.28
Changes: https://github.com/Unidata/UDUNITS-2/blob/master/CHANGE_LOG
Diffstat (limited to 'science/udunits/files/patch-lib-xml.c')
| -rw-r--r-- | science/udunits/files/patch-lib-xml.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/science/udunits/files/patch-lib-xml.c b/science/udunits/files/patch-lib-xml.c new file mode 100644 index 000000000000..01ca8725676e --- /dev/null +++ b/science/udunits/files/patch-lib-xml.c @@ -0,0 +1,20 @@ +--- lib/xml.c.orig 2020-12-07 18:37:03 UTC ++++ lib/xml.c +@@ -38,7 +38,7 @@ + #endif + #include <sys/stat.h> + #include <sys/types.h> +-#if defined(__linux__) ++#if defined(__linux__) || defined(__FreeBSD__) + #include <dlfcn.h> + #elif defined(__APPLE__) + #define _DARWIN_C_SOURCE +@@ -2137,7 +2137,7 @@ default_udunits2_xml_path() + if (absXmlPathname[0] == 0) { + const char* prefix = NULL; // Installation directory + +-# if defined(__APPLE__) || defined(__linux__) ++# if defined(__APPLE__) || defined(__linux__) || defined(__FreeBSD__) + Dl_info info; + const char sep = '/'; // Pathname component separator + char buf[PATH_MAX]; |
