aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/setup.h3
-rw-r--r--src/main.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/setup.h b/lib/setup.h
index 4268b9bf6..c1f7135e5 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -323,7 +323,8 @@
# if defined(_LP64) || defined(_LARGE_FILES)
# define SIZEOF_OFF_T 8
# endif
-# else
+# endif
+# ifndef SIZEOF_OFF_T
# define SIZEOF_OFF_T 4
# endif
#endif
diff --git a/src/main.c b/src/main.c
index 62c34cbdf..784d1750f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -263,7 +263,8 @@ typedef enum {
# if defined(_LP64) || defined(_LARGE_FILES)
# define SIZEOF_OFF_T 8
# endif
-# else
+# endif
+# ifndef SIZEOF_OFF_T
# define SIZEOF_OFF_T 4
# endif
#endif