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

Chandler Carruth chandlerc at google.com
Mon Apr 23 12:51:16 PDT 2012


On Mon, Apr 23, 2012 at 11:55 AM, Michael Spencer <bigcheesegs at gmail.com>wrote:

> 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
>

Er, I already replied? ;]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120423/94101c7f/attachment.html>


More information about the llvm-commits mailing list