diff options
Diffstat (limited to 'sysdeps/generic/bits')
-rw-r--r-- | sysdeps/generic/bits/dirent.h | 9 | ||||
-rw-r--r-- | sysdeps/generic/bits/resource.h | 2 | ||||
-rw-r--r-- | sysdeps/generic/bits/sigset.h | 2 | ||||
-rw-r--r-- | sysdeps/generic/bits/time.h | 4 |
4 files changed, 14 insertions, 3 deletions
diff --git a/sysdeps/generic/bits/dirent.h b/sysdeps/generic/bits/dirent.h index 366cdf8ce2..d074589562 100644 --- a/sysdeps/generic/bits/dirent.h +++ b/sysdeps/generic/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/sysdeps/generic/bits/resource.h b/sysdeps/generic/bits/resource.h index d0ebeb56c8..e72836d3c7 100644 --- a/sysdeps/generic/bits/resource.h +++ b/sysdeps/generic/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/sysdeps/generic/bits/sigset.h b/sysdeps/generic/bits/sigset.h index 9fad4538d7..c442d53643 100644 --- a/sysdeps/generic/bits/sigset.h +++ b/sysdeps/generic/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/sysdeps/generic/bits/time.h b/sysdeps/generic/bits/time.h index cdbd39f91d..f608e2c996 100644 --- a/sysdeps/generic/bits/time.h +++ b/sysdeps/generic/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 */ |