--- a/src/libshared/src/FS.cpp
+++ b/src/libshared/src/FS.cpp
@@ -41,7 +41,7 @@
 #include <shared.h>
 #include <format.h>
 
-#if defined SOLARIS || defined NETBSD || defined FREEBSD
+#if defined SOLARIS || defined NETBSD || defined FREEBSD || !defined(__GLIBC__)
 #include <limits.h>
 #endif
 
