[llvm-commits] [PATCH][Support/Unix] Unconditionally include time.h

Michael Spencer bigcheesegs at gmail.com
Mon Apr 23 11:55:18 PDT 2012


On Fri, Apr 20, 2012 at 2:24 PM, Michael Spencer <bigcheesegs at gmail.com> wrote:
> 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
>
> - Michael Spencer

Ping

- Michael Spencer



More information about the llvm-commits mailing list