diff --git a/src/m_misc.c b/src/m_misc.c
index 73d17c00d8e43e95b01802f314b9b757ecf6efed..3e4be62a270fb0117678c51b935af77ab8b4b5ae 100644
--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -50,7 +50,9 @@
 #ifdef HAVE_SDL
 #include "sdl/hwsym_sdl.h"
 #ifdef __linux__
+#ifndef _LARGEFILE64_SOURCE
 typedef off_t off64_t;
+#neidf
 #endif
 #endif