mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
Don't #include <unistd.h> directly, go through the config files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14038 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -18,22 +18,16 @@
|
|||||||
|
|
||||||
#include "Config/config.h"
|
#include "Config/config.h"
|
||||||
|
|
||||||
#ifdef HAVE_SYS_RESOURCE_H
|
#if defined(HAVE_SYS_RESOURCE_H) && !defined(_MSC_VER)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* In LLVM, we use sys/resource.h to use getrusage() and maybe some other
|
* In LLVM, we use sys/resource.h to use getrusage() and maybe some other
|
||||||
* stuff. Some man pages say that you also need sys/time.h and unistd.h.
|
* stuff. Some man pages say that you also need sys/time.h and unistd.h.
|
||||||
* So, to be paranoid, we will try to include all three if possible.
|
* So, to be paranoid, we will try to include all three if possible.
|
||||||
*/
|
*/
|
||||||
#ifdef HAVE_SYS_TIME_H
|
#include "Config/sys/time.h"
|
||||||
#include <sys/time.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
|
#include "Config/unistd.h"
|
||||||
#ifdef HAVE_UNISTD_H
|
|
||||||
#include <unistd.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
#include "Config/config.h"
|
#include "Config/config.h"
|
||||||
|
|
||||||
#ifdef HAVE_SYS_TIME_H
|
#if defined(HAVE_SYS_TIME_H) && !defined(_MSC_VER)
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -18,22 +18,16 @@
|
|||||||
|
|
||||||
#include "Config/config.h"
|
#include "Config/config.h"
|
||||||
|
|
||||||
#ifdef HAVE_SYS_RESOURCE_H
|
#if defined(HAVE_SYS_RESOURCE_H) && !defined(_MSC_VER)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* In LLVM, we use sys/resource.h to use getrusage() and maybe some other
|
* In LLVM, we use sys/resource.h to use getrusage() and maybe some other
|
||||||
* stuff. Some man pages say that you also need sys/time.h and unistd.h.
|
* stuff. Some man pages say that you also need sys/time.h and unistd.h.
|
||||||
* So, to be paranoid, we will try to include all three if possible.
|
* So, to be paranoid, we will try to include all three if possible.
|
||||||
*/
|
*/
|
||||||
#ifdef HAVE_SYS_TIME_H
|
#include "Config/sys/time.h"
|
||||||
#include <sys/time.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
|
#include "Config/unistd.h"
|
||||||
#ifdef HAVE_UNISTD_H
|
|
||||||
#include <unistd.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
#include "Config/config.h"
|
#include "Config/config.h"
|
||||||
|
|
||||||
#ifdef HAVE_SYS_TIME_H
|
#if defined(HAVE_SYS_TIME_H) && !defined(_MSC_VER)
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user