diff options
author | Joel Sherrill <joel@rtems.org> | 2024-07-08 17:22:44 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2024-07-09 08:46:22 -0500 |
commit | 80550ffc2ed6274531058059f577fc4a64f00404 (patch) | |
tree | f01a35b3cfff881301b238dafcafd3164e9d7048 /newlib | |
parent | 5876c8cab4fd2cb666db042a0db3c9f6b8134c30 (diff) | |
download | newlib-80550ffc2ed6274531058059f577fc4a64f00404.zip newlib-80550ffc2ed6274531058059f577fc4a64f00404.tar.gz newlib-80550ffc2ed6274531058059f577fc4a64f00404.tar.bz2 |
libc/include/sys/resource.h: Add RUSAGE_THREAD
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/include/sys/resource.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/resource.h b/newlib/libc/include/sys/resource.h index c0a0d20..e653d08 100644 --- a/newlib/libc/include/sys/resource.h +++ b/newlib/libc/include/sys/resource.h @@ -9,6 +9,9 @@ extern "C" { #define RUSAGE_SELF 0 /* calling process */ #define RUSAGE_CHILDREN -1 /* terminated child processes */ +#if __GNU_VISIBLE +#define RUSAGE_THREAD 1 +#endif struct rusage { struct timeval ru_utime; /* user time used */ |