tools: fix compilation on some systems
authorThomas Debesse <dev@illwieckz.net>
Tue, 28 Jun 2022 11:09:52 +0000 (13:09 +0200)
committerThomas Debesse <dev@illwieckz.net>
Tue, 28 Jun 2022 11:09:52 +0000 (13:09 +0200)
tools/quake2/qdata/qdata.c
tools/quake3/q3data/q3data.c

index 1d9f6c78d48c650816a798d2581a674b81660ad1..7b551cbf31faf91185fe034d9b272967ddd90208 100644 (file)
@@ -245,7 +245,8 @@ void PackDirectory_r( char *dir ){
 #else
 
 #include <sys/types.h>
-#include <sys/dir.h>
+
+#include <dirent.h>
 
 void PackDirectory_r( char *dir ){
 #ifdef NeXT
index 3f74d27f44a96ec98070f293a42069bcf4740b45..39b2e49765e77416a5e6ae5b4a32e09ae5aa05a4 100644 (file)
@@ -335,11 +335,8 @@ void PackDirectory_r( char *dir ){
 #else
 
 #include <sys/types.h>
-#if !GDEF_OS_WINDOWS
-#include <sys/dir.h>
-#else
-#include <sys/dirent.h>
-#endif
+
+#include <dirent.h>
 
 void PackDirectory_r( char *dir ){
 #ifdef NeXT