Skip to content

Commit 1dce4aa

Browse files
authored
Merge pull request #18873 from compnerd/this-is-unix
2 parents 5ae3b6a + 4aa137f commit 1dce4aa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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)