| commit | 04b795bc1d1381c75421647c9385043c10d13d30 | [log] [tgz] |
|---|---|---|
| author | Michael J. Spencer <bigcheesegs@gmail.com> | Mon Apr 23 19:00:27 2012 +0000 |
| committer | Michael J. Spencer <bigcheesegs@gmail.com> | Mon Apr 23 19:00:27 2012 +0000 |
| tree | 1537594db321f5db3e4a454fbca2e274255f7e7d | |
| parent | 3cc207bbccbaedfdb94eb2532624fc065d675d99 [diff] |
[Support/Unix] Unconditionally include time.h. When building LLVM on Linux with libc++ with CMake TIME_WITH_SYS_TIME is undefined, and HAVE_SYS_TIME_H is defined. This ends up including sys/time.h but not time.h. Unix/TimeValue.inc requires time.h for asctime_r and localtime. libstdc++ seems to include time.h anyway, but libc++ does not. Fix this by always including time.h llvm-svn: 155382