Skip to content

Commit 304a538

Browse files
committed
---
yaml --- r: 344957 b: refs/heads/master c: 3bcffac h: refs/heads/master i: 344955: 3ef7e3c
1 parent f0c571d commit 304a538

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 6e1b57e6fc36dd2701ea6f6d0048df2a90909548
2+
refs/heads/master: 3bcffac402a87d75621754e4121e81f166b09a96
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/lib/Basic/Statistic.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@
2727
#include "llvm/Support/raw_ostream.h"
2828
#include <chrono>
2929
#include <limits>
30-
#include <unistd.h>
3130

31+
#if LLVM_ON_UNIX
32+
#if HAVE_UNISTD_H
33+
#include <unistd.h>
34+
#endif
35+
#endif
3236
#ifdef HAVE_SYS_TIME_H
3337
#include <sys/time.h>
3438
#endif

0 commit comments

Comments
 (0)