Use #if in bitops.h.

This commit is contained in:
Milan Broz
2025-01-16 13:01:56 +01:00
parent 1e441bf75c
commit 29741d91e6
2 changed files with 4 additions and 3 deletions

View File

@@ -10,13 +10,13 @@
#include <stdint.h>
#include <sys/param.h>
#if defined(HAVE_BYTESWAP_H)
#if HAVE_BYTESWAP_H
# include <byteswap.h>
#endif
#if defined(HAVE_ENDIAN_H)
#if HAVE_ENDIAN_H
# include <endian.h>
#elif defined(HAVE_SYS_ENDIAN_H) /* BSDs have them here */
#elif HAVE_SYS_ENDIAN_H /* BSDs have them here */
# include <sys/endian.h>
#endif

View File

@@ -98,6 +98,7 @@ required_headers = [
'locale.h',
'malloc.h',
'stdint.h',
'sys/endian.h',
'sys/ioctl.h',
'sys/mman.h',
'sys/statvfs.h',