2.38.1: SunOS build fix
I've updated the pkgsrc package to 2.38.1. Shortly afterwards a SunOS user provided the following build fix:
--- meson.build.orig 2019-02-28 16:22:57.000000000 +0000
+++ meson.build
@@ -8,7 +8,7 @@ project('gdk-pixbuf', 'c',
],
meson_version: '>= 0.46.0')
-add_project_arguments([ '-D_POSIX_C_SOURCE=200809L', '-D_DEFAULT_SOURCE', '-D_XOPEN_SOURCE' ], language: 'c')
+add_project_arguments([ '-D_POSIX_C_SOURCE=200809L', '-D_DEFAULT_SOURCE', '-D_XOPEN_SOURCE=500' ], language: 'c')
cc = meson.get_compiler('c')
host_system = host_machine.system()
with the comment:
-D_XOPEN_SOURCE=1 implies POSIX.1 but we need at least 500 (SUSv2) for struct timeval. Fixes build on SunOS.
Please apply it to the next release. Thank you.