cog-spur: update inisqueak to 6.1alpha 23193 image
[oi-userland.git] / components / scientific / udunits / patches / solaris-support.patch
blob1aeb26ebd8513190f598a4c203da9c876bd632d3
1 diff -Nru udunits-2.2.28.orig/lib/xml.c udunits-2.2.28/lib/xml.c
2 --- udunits-2.2.28.orig/lib/xml.c 2020-12-07 19:37:03.000000000 +0100
3 +++ udunits-2.2.28/lib/xml.c 2023-06-17 16:05:05.517340848 +0200
4 @@ -38,7 +38,7 @@
5 #endif
6 #include <sys/stat.h>
7 #include <sys/types.h>
8 -#if defined(__linux__)
9 +#if defined(__linux__) || defined(__sun)
10 #include <dlfcn.h>
11 #elif defined(__APPLE__)
12 #define _DARWIN_C_SOURCE
13 @@ -2137,7 +2137,7 @@
14 if (absXmlPathname[0] == 0) {
15 const char* prefix = NULL; // Installation directory
17 -# if defined(__APPLE__) || defined(__linux__)
18 +# if defined(__APPLE__) || defined(__linux__) || defined(__sun)
19 Dl_info info;
20 const char sep = '/'; // Pathname component separator
21 char buf[PATH_MAX];