From 29741d91e6f50ee5da07df391181a47a93bdfc47 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Thu, 16 Jan 2025 13:01:56 +0100 Subject: [PATCH] Use #if in bitops.h. --- lib/bitops.h | 6 +++--- meson.build | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/bitops.h b/lib/bitops.h index a991687c..1ef97184 100644 --- a/lib/bitops.h +++ b/lib/bitops.h @@ -10,13 +10,13 @@ #include #include -#if defined(HAVE_BYTESWAP_H) +#if HAVE_BYTESWAP_H # include #endif -#if defined(HAVE_ENDIAN_H) +#if HAVE_ENDIAN_H # include -#elif defined(HAVE_SYS_ENDIAN_H) /* BSDs have them here */ +#elif HAVE_SYS_ENDIAN_H /* BSDs have them here */ # include #endif diff --git a/meson.build b/meson.build index e3613818..e1899d50 100644 --- a/meson.build +++ b/meson.build @@ -98,6 +98,7 @@ required_headers = [ 'locale.h', 'malloc.h', 'stdint.h', + 'sys/endian.h', 'sys/ioctl.h', 'sys/mman.h', 'sys/statvfs.h',