partition-include-headers-to-get-opendir-etc-20010406
authorNickolai Zeldovich <kolya@mit.edu>
Fri, 6 Apr 2001 19:11:44 +0000 (19:11 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 6 Apr 2001 19:11:44 +0000 (19:11 +0000)
so namei code comes closer to being useful in more cases

src/vol/partition.c

index e1eb720..fa8c3c4 100644 (file)
@@ -24,7 +24,8 @@
 #include <winioctl.h>
 #else
 #include <sys/param.h>
-
+#include <sys/types.h>
 #if AFS_HAVE_STATVFS
 #include <sys/statvfs.h>
 #endif /* AFS_HAVE_STATVFS */
 #include "ntops.h"
 #else
 #include "namei_ops.h"
-#endif
+#if defined(AFS_SGI_ENV)
+#include <sys/dir.h>
+#else
+#include <dirent.h>
+#endif /* AFS_SGI_ENV */
+#endif /* AFS_NT40_ENV */
 #endif /* AFS_NAMEI_ENV */
 #include "vnode.h"
 #include "volume.h"