2 * Header file: resource.h
5 * This header file is the autoconf replacement for sys/resource.h (if it
6 * lives on the system).
9 #ifndef _CONFIG_SYS_RESOURCE_H
10 #define _CONFIG_SYS_RESOURCE_H
12 #include "Config/config.h"
14 #ifdef HAVE_SYS_RESOURCE_H
17 * In LLVM, we use sys/resource.h to use getrusage() and maybe some other
18 * stuff. Some man pages say that you also need sys/time.h and unistd.h.
19 * So, to be paranoid, we will try to include all three if possible.
21 #ifdef HAVE_SYS_TIME_H
25 #include <sys/resource.h>