diff --git a/indra/llcommon/llfile.h b/indra/llcommon/llfile.h
index 3e25228aeb31bb47e1220503c13ba2954b920b30..315e18e4f2495d21ed90f90868caec5d16440011 100644
--- a/indra/llcommon/llfile.h
+++ b/indra/llcommon/llfile.h
@@ -45,7 +45,7 @@ typedef FILE	LLFILE;
 typedef struct _stat	llstat;
 #else
 typedef struct stat		llstat;
-#include <bits/postypes.h>
+#include <sys/types.h>
 #endif
 
 #ifndef S_ISREG