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:
@@ -16,10 +16,10 @@
|
||||
#include <sys/ioctl.h>
|
||||
#include <linux/fs.h>
|
||||
#include <unistd.h>
|
||||
#ifdef HAVE_SYS_SYSMACROS_H
|
||||
#if HAVE_SYS_SYSMACROS_H
|
||||
# include <sys/sysmacros.h> /* for major, minor */
|
||||
#endif
|
||||
#ifdef HAVE_SYS_STATVFS_H
|
||||
#if HAVE_SYS_STATVFS_H
|
||||
# include <sys/statvfs.h>
|
||||
#endif
|
||||
#include "internal.h"
|
||||
@@ -50,7 +50,7 @@ static size_t device_fs_block_size_fd(int fd)
|
||||
{
|
||||
size_t page_size = crypt_getpagesize();
|
||||
|
||||
#ifdef HAVE_SYS_STATVFS_H
|
||||
#if HAVE_SYS_STATVFS_H
|
||||
struct statvfs buf;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user