make_ext4: Add strict prototypes.
[project/make_ext4fs.git] / ext4_utils.h
index 97eebc4..a5c1ae0 100644 (file)
@@ -27,9 +27,12 @@ extern "C" {
 #define _FILE_OFFSET_BITS 64
 #define _LARGEFILE64_SOURCE 1
 #include <sys/types.h>
-#include <unistd.h>
 
-#include <sys/types.h>
+#ifdef __GLIBC__
+#include <sys/sysmacros.h>
+#endif
+
+#include <unistd.h>
 #include <errno.h>
 #include <stdarg.h>
 #include <stdio.h>
@@ -38,13 +41,6 @@ extern "C" {
 #include <setjmp.h>
 #include <stdint.h>
 
-#if defined(__APPLE__) && defined(__MACH__)
-#define lseek64 lseek
-#define ftruncate64 ftruncate
-#define mmap64 mmap
-#define off64_t off_t
-#endif
-
 #include "ext4_sb.h"
 
 extern int force;
@@ -156,7 +152,7 @@ typedef int (*fs_config_func_t)(const char *path, int dir, unsigned *uid, unsign
 struct selabel_handle;
 
 int make_ext4fs_internal(int fd, const char *directory,
-                                                const char *mountpoint, fs_config_func_t fs_config_func, int gzip,
+                                                fs_config_func_t fs_config_func, int gzip,
                                                 int sparse, int crc, int wipe,
                                                 int verbose, time_t fixed_time,
                                                 FILE* block_list_file);