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
8 -#if defined(__linux__)
9 +#if defined(__linux__) || defined(__sun)
11 #elif defined(__APPLE__)
12 #define _DARWIN_C_SOURCE
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)
20 const char sep = '/'; // Pathname component separator