about summary refs log tree commit diff
path: root/bits
diff options
context:
space:
mode:
Diffstat (limited to 'bits')
-rw-r--r--bits/dirent.h9
-rw-r--r--bits/resource.h2
-rw-r--r--bits/sigset.h2
-rw-r--r--bits/time.h4
4 files changed, 14 insertions, 3 deletions
diff --git a/bits/dirent.h b/bits/dirent.h
index 366cdf8ce2..d074589562 100644
--- a/bits/dirent.h
+++ b/bits/dirent.h
@@ -26,3 +26,12 @@ struct dirent
     char d_name[1];		/* Variable length.  */
     int d_fileno;
   };
+
+#ifdef __USE_LARGEFILE64
+struct dirent64
+  {
+    char d_name[1];		/* Variable length.  */
+    int d_fileno;
+  };
+#endif
+
diff --git a/bits/resource.h b/bits/resource.h
index d0ebeb56c8..e72836d3c7 100644
--- a/bits/resource.h
+++ b/bits/resource.h
@@ -21,6 +21,8 @@
 # error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."
 #endif
 
+#include <bits/types.h>
+
 /* These are the values for 4.4 BSD and GNU.  Earlier BSD systems have a
    subset of these kinds of resource limit.  In systems where `getrlimit'
    and `setrlimit' are not system calls, these are the values used by the C
diff --git a/bits/sigset.h b/bits/sigset.h
index 9fad4538d7..c442d53643 100644
--- a/bits/sigset.h
+++ b/bits/sigset.h
@@ -34,7 +34,7 @@ typedef unsigned long int __sigset_t;
    trouble can be caused by functions being defined (e.g., any global
    register vars declared later will cause compilation errors).  */
 
-#if !defined (_SIGSET_H_fns) && defined (_SIGNAL_H)
+#if !defined _SIGSET_H_fns && defined _SIGNAL_H
 #define _SIGSET_H_fns 1
 
 #ifndef _EXTERN_INLINE
diff --git a/bits/time.h b/bits/time.h
index cdbd39f91d..f608e2c996 100644
--- a/bits/time.h
+++ b/bits/time.h
@@ -39,8 +39,8 @@
    microsecond but also has a range of years.  */
 struct timeval
   {
-    time_t tv_sec;		/* Seconds.  */
-    time_t tv_usec;		/* Microseconds.  */
+    __time_t tv_sec;		/* Seconds.  */
+    __time_t tv_usec;		/* Microseconds.  */
   };
 # endif	/* struct timeval */
 #endif	/* need timeval */