Fix missing headers
[platform/upstream/cryptsetup.git] / lib / utils_devpath.c
index 876b6ca..fc5175c 100644 (file)
@@ -8,7 +8,8 @@
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
- * version 2 as published by the Free Software Foundation.
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 #include <dirent.h>
 #include <fcntl.h>
 #include <errno.h>
+#include <limits.h>
 #include <sys/stat.h>
 #include <sys/types.h>
 #include "utils_dm.h"
 
-/* These are DM helpers used only by this file */
-int dm_is_dm_device(int major, int minor);
-int dm_is_dm_kernel_name(const char *name);
-char *dm_device_path(const char *prefix, int major, int minor);
-
 char *crypt_lookup_dev(const char *dev_id);
 int crypt_sysfs_get_rotational(int major, int minor, int *rotational);