mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Use #if for HAVE*_H defines.
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#ifdef HAVE_UCHAR_H
|
#if HAVE_UCHAR_H
|
||||||
#include <uchar.h>
|
#include <uchar.h>
|
||||||
#else
|
#else
|
||||||
#define char32_t uint32_t
|
#define char32_t uint32_t
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
#include <libdevmapper.h>
|
#include <libdevmapper.h>
|
||||||
#include <uuid/uuid.h>
|
#include <uuid/uuid.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#ifdef HAVE_SYS_SYSMACROS_H
|
#if HAVE_SYS_SYSMACROS_H
|
||||||
# include <sys/sysmacros.h> /* for major, minor */
|
# include <sys/sysmacros.h> /* for major, minor */
|
||||||
#endif
|
#endif
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#ifdef HAVE_SYS_SYSMACROS_H
|
#if HAVE_SYS_SYSMACROS_H
|
||||||
# include <sys/sysmacros.h> /* for major, minor */
|
# include <sys/sysmacros.h> /* for major, minor */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
#define LOCALEDIR "/usr/share/locale"
|
#define LOCALEDIR "/usr/share/locale"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LOCALE_H
|
#if HAVE_LOCALE_H
|
||||||
# include <locale.h>
|
# include <locale.h>
|
||||||
#else
|
#else
|
||||||
# undef setlocale
|
# undef setlocale
|
||||||
|
|||||||
@@ -16,10 +16,10 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <linux/fs.h>
|
#include <linux/fs.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#ifdef HAVE_SYS_SYSMACROS_H
|
#if HAVE_SYS_SYSMACROS_H
|
||||||
# include <sys/sysmacros.h> /* for major, minor */
|
# include <sys/sysmacros.h> /* for major, minor */
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_SYS_STATVFS_H
|
#if HAVE_SYS_STATVFS_H
|
||||||
# include <sys/statvfs.h>
|
# include <sys/statvfs.h>
|
||||||
#endif
|
#endif
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
@@ -50,7 +50,7 @@ static size_t device_fs_block_size_fd(int fd)
|
|||||||
{
|
{
|
||||||
size_t page_size = crypt_getpagesize();
|
size_t page_size = crypt_getpagesize();
|
||||||
|
|
||||||
#ifdef HAVE_SYS_STATVFS_H
|
#if HAVE_SYS_STATVFS_H
|
||||||
struct statvfs buf;
|
struct statvfs buf;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#ifdef HAVE_SYS_SYSMACROS_H
|
#if HAVE_SYS_SYSMACROS_H
|
||||||
# include <sys/sysmacros.h> /* for major, minor */
|
# include <sys/sysmacros.h> /* for major, minor */
|
||||||
#endif
|
#endif
|
||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#ifdef HAVE_SYS_SYSMACROS_H
|
#if HAVE_SYS_SYSMACROS_H
|
||||||
# include <sys/sysmacros.h> /* for major, minor */
|
# include <sys/sysmacros.h> /* for major, minor */
|
||||||
#endif
|
#endif
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#ifdef HAVE_SYS_SYSMACROS_H
|
#if HAVE_SYS_SYSMACROS_H
|
||||||
# include <sys/sysmacros.h> /* for major, minor */
|
# include <sys/sysmacros.h> /* for major, minor */
|
||||||
#endif
|
#endif
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include "cryptsetup.h"
|
#include "cryptsetup.h"
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#ifdef HAVE_SYS_SYSMACROS_H
|
#if HAVE_SYS_SYSMACROS_H
|
||||||
# include <sys/sysmacros.h> /* for major, minor */
|
# include <sys/sysmacros.h> /* for major, minor */
|
||||||
#endif
|
#endif
|
||||||
#include <uuid/uuid.h>
|
#include <uuid/uuid.h>
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
# include <linux/keyctl.h>
|
# include <linux/keyctl.h>
|
||||||
# include <sys/syscall.h>
|
# include <sys/syscall.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_SYS_SYSMACROS_H
|
#if HAVE_SYS_SYSMACROS_H
|
||||||
# include <sys/sysmacros.h>
|
# include <sys/sysmacros.h>
|
||||||
#endif
|
#endif
|
||||||
#include <linux/loop.h>
|
#include <linux/loop.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user