Be a bit more efficient when processing the active and inactive
[oota-llvm.git] / include / llvm / Config / sys / resource.h
1 /*===-- Config/sys/resource.h -----------------------------------*- C++ -*-===//
2  * 
3  *                     The LLVM Compiler Infrastructure
4  *
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.
7  * 
8  *===----------------------------------------------------------------------===//
9  *
10  *      This header file is the autoconf replacement for sys/resource.h (if it
11  *      lives on the system).
12  *
13  *===----------------------------------------------------------------------===//
14  */
15
16 #ifndef _CONFIG_SYS_RESOURCE_H
17 #define _CONFIG_SYS_RESOURCE_H
18
19 #include "Config/config.h"
20
21 #if defined(HAVE_SYS_RESOURCE_H) && !defined(_MSC_VER)
22
23 /*
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.
27  */
28 #include "Config/sys/time.h"
29 #include <sys/resource.h>
30 #include "Config/unistd.h"
31
32 #endif
33
34 #endif