1 /*===-- Config/sys/resource.h - Annotation classes --------------*- C++ -*-===//
3 * The LLVM Compiler Infrastructure
5 * This file was developed by the LLVM research group and is distributed under
6 * the University of Illinois Open Source License. See LICENSE.TXT for details.
8 *===----------------------------------------------------------------------===//
10 * This header file is the autoconf replacement for sys/resource.h (if it
11 * lives on the system).
13 *===----------------------------------------------------------------------===//
16 #ifndef _CONFIG_SYS_RESOURCE_H
17 #define _CONFIG_SYS_RESOURCE_H
19 #include "Config/config.h"
21 #ifdef HAVE_SYS_RESOURCE_H
24 * In LLVM, we use sys/resource.h to use getrusage() and maybe some other
25 * stuff. Some man pages say that you also need sys/time.h and unistd.h.
26 * So, to be paranoid, we will try to include all three if possible.
28 #ifdef HAVE_SYS_TIME_H
32 #include <sys/resource.h>