meson: build with _ISOC11_SOURCE on OpenBSD
[mesa.git] / meson.build
index 2c3397d673ebbef6359b76a14ffc436817e1a7f5..661a01e82b42b88a98b11f2223e0c406e570621d 100644 (file)
@@ -949,6 +949,8 @@ elif host_machine.system() == 'windows'
   else
     pre_args += ['-D__MSVCRT_VERSION__=0x0700']
   endif
+elif host_machine.system() == 'openbsd'
+  pre_args += '-D_ISOC11_SOURCE'
 endif
 
 # Check for generic C arguments