37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
diff -Naur orig/lib/utils_devpath.c new/lib/utils_devpath.c
|
|
--- orig/lib/utils_devpath.c 2019-08-27 12:45:31.275768499 +0000
|
|
+++ new/lib/utils_devpath.c 2019-08-27 12:45:56.955767807 +0000
|
|
@@ -33,6 +33,8 @@
|
|
#include <sys/types.h>
|
|
#include "internal.h"
|
|
|
|
+#include <sys/sysmacros.h>
|
|
+
|
|
static char *__lookup_dev(char *path, dev_t dev, int dir_level, const int max_level)
|
|
{
|
|
struct dirent *entry;
|
|
diff -Naur orig/lib/utils_loop.c new/lib/utils_loop.c
|
|
--- orig/lib/utils_loop.c 2019-08-27 12:45:31.275768499 +0000
|
|
+++ new/lib/utils_loop.c 2019-08-27 12:46:23.275767098 +0000
|
|
@@ -32,6 +32,8 @@
|
|
|
|
#include "utils_loop.h"
|
|
|
|
+#include <sys/sysmacros.h>
|
|
+
|
|
#define LOOP_DEV_MAJOR 7
|
|
|
|
#ifndef LO_FLAGS_AUTOCLEAR
|
|
diff -Naur orig/lib/utils_wipe.c new/lib/utils_wipe.c
|
|
--- orig/lib/utils_wipe.c 2019-08-27 12:45:31.275768499 +0000
|
|
+++ new/lib/utils_wipe.c 2019-08-27 12:46:50.731766358 +0000
|
|
@@ -34,6 +34,8 @@
|
|
#include "libcryptsetup.h"
|
|
#include "internal.h"
|
|
|
|
+#include <sys/sysmacros.h>
|
|
+
|
|
#define MAXIMUM_WIPE_BYTES 1024 * 1024 * 32 /* 32 MiB */
|
|
|
|
static ssize_t _crypt_wipe_zero(int fd, int bsize, char *buffer,
|