Skip to content
Snippets Groups Projects
Verified Commit cc566993 authored by Dan Robertson's avatar Dan Robertson
Browse files

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.
parent 1b1ff5c7
No related branches found
No related tags found
No related merge requests found
...@@ -49,4 +49,6 @@ typedef int64_t intmax_t; ...@@ -49,4 +49,6 @@ typedef int64_t intmax_t;
#define UINTMAX_MAX UINT64_MAX #define UINTMAX_MAX UINT64_MAX
typedef uint64_t uintmax_t; typedef uint64_t uintmax_t;
#define SIZE_MAX UINT64_MAX
#endif /* _STDINT_H */ #endif /* _STDINT_H */
sys_includes = ["sys/types.h"] sys_includes = ["sys/types.h", "sys/time.h"]
include_guard = "_SYS_RESOURCE_H" include_guard = "_SYS_RESOURCE_H"
language = "C" language = "C"
style = "Tag"
[enum] [enum]
prefix_with_name = true prefix_with_name = true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment