diff --git a/meson.build b/meson.build index 255c73a58..fdd8bf655 100644 --- a/meson.build +++ b/meson.build @@ -169,6 +169,10 @@ cdata.set('OS_IS_FREEBSD', 0) platform_socket_dep = [] platform_dep = [] +if host_machine.endian() == 'big' + cdata.set('WORDS_BIGENDIAN', 1) +endif + # FIXME: This was not tested. Maybe some flags should better be CFLAGS, # rather than ending up in the config.h file? if host_machine.system() == 'darwin'