Fix include in resource.h and add SIZE_MAX

The rusage struct makes use of the timeval structure. Make sure to
include sys/time.h so that the type is known.

Add SIZE_MAX to stdint.h

sys/resource expects the defined structures to not be defined with a
typedef.
This commit is contained in:
Dan Robertson
2018-03-11 22:12:24 +00:00
parent 1b1ff5c750
commit cc5669939e
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -49,4 +49,6 @@ typedef int64_t intmax_t;
#define UINTMAX_MAX UINT64_MAX
typedef uint64_t uintmax_t;
#define SIZE_MAX UINT64_MAX
#endif /* _STDINT_H */
+2 -1
View File
@@ -1,6 +1,7 @@
sys_includes = ["sys/types.h"]
sys_includes = ["sys/types.h", "sys/time.h"]
include_guard = "_SYS_RESOURCE_H"
language = "C"
style = "Tag"
[enum]
prefix_with_name = true