diff options
Diffstat (limited to 'm68k-unknown-amigaos/recipes/patches/clib2/clib2.include.sys.resource.h.p')
-rw-r--r-- | m68k-unknown-amigaos/recipes/patches/clib2/clib2.include.sys.resource.h.p | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/m68k-unknown-amigaos/recipes/patches/clib2/clib2.include.sys.resource.h.p b/m68k-unknown-amigaos/recipes/patches/clib2/clib2.include.sys.resource.h.p new file mode 100644 index 0000000..0c95664 --- /dev/null +++ b/m68k-unknown-amigaos/recipes/patches/clib2/clib2.include.sys.resource.h.p @@ -0,0 +1,37 @@ +--- include/sys/resource.h.old 2010-12-29 03:18:01.000000000 +0000 ++++ include/sys/resource.h 2010-12-29 03:20:10.000000000 +0000 +@@ -47,6 +47,10 @@ + #include <sys/types.h> /* For the definition of rlim_t */ + #endif /* _SYS_TYPES_H */ + ++#ifndef _SYS_TIME_H ++#include <sys/time.h> ++#endif ++ + /****************************************************************************/ + + #ifdef __cplusplus +@@ -90,6 +94,23 @@ + + /****************************************************************************/ + ++#define RUSAGE_SELF 0 ++#define RUSAGE_CHILDREN 1 ++ ++/****************************************************************************/ ++ ++struct rusage ++{ ++ struct timeval ru_utime; ++ struct timeval ru_stime; ++}; ++ ++/****************************************************************************/ ++ ++extern int getrusage(int who, struct rusage *usage); ++ ++/****************************************************************************/ ++ + #ifdef __cplusplus + } + #endif /* __cplusplus */ |