mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Use #if in bitops.h.
This commit is contained in:
@@ -10,13 +10,13 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
|
||||||
#if defined(HAVE_BYTESWAP_H)
|
#if HAVE_BYTESWAP_H
|
||||||
# include <byteswap.h>
|
# include <byteswap.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_ENDIAN_H)
|
#if HAVE_ENDIAN_H
|
||||||
# include <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>
|
# include <sys/endian.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ required_headers = [
|
|||||||
'locale.h',
|
'locale.h',
|
||||||
'malloc.h',
|
'malloc.h',
|
||||||
'stdint.h',
|
'stdint.h',
|
||||||
|
'sys/endian.h',
|
||||||
'sys/ioctl.h',
|
'sys/ioctl.h',
|
||||||
'sys/mman.h',
|
'sys/mman.h',
|
||||||
'sys/statvfs.h',
|
'sys/statvfs.h',
|
||||||
|
|||||||
Reference in New Issue
Block a user