util.pposix: Put the warning back, mention how we might still use posix_fallocate()
authorKim Alvefur <zash@zash.se>
Tue, 31 Jul 2012 21:43:34 +0000 (23:43 +0200)
committerKim Alvefur <zash@zash.se>
Tue, 31 Jul 2012 21:43:34 +0000 (23:43 +0200)
util-src/pposix.c

index bda13ec020616dcb7b10231ab71d48fa6a9d3671..191e276ee1bc4576603feae2451924547bf5606d 100644 (file)
@@ -674,6 +674,10 @@ int lc_fallocate(lua_State* L)
                lua_pushstring(L, strerror(errno));
                return 2;
        }
+#else
+#warning Only using posix_fallocate() fallback.
+#warning Linux fallocate() is strongly recommended if available: recompile with -D_GNU_SOURCE
+#warning Note that posix_fallocate() will still be used on filesystems that dont support fallocate()
 #endif
 
        if(posix_fallocate(fileno(f), offset, len) == 0)