--- src/cryptsetup.h
+++ src/cryptsetup.h
@@ -24,8 +24,12 @@
 #ifndef CRYPTSETUP_H
 #define CRYPTSETUP_H
 
+#ifndef _LARGEFILE64_SOURCE
 #define _LARGEFILE64_SOURCE
+#endif
+#ifndef _FILE_OFFSET_BITS
 #define _FILE_OFFSET_BITS 64
+#endif
 
 #include <config.h>
 
