<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Oct 21, 2015 at 11:44 AM, Yaron Keren <span dir="ltr"><<a href="mailto:yaron.keren@gmail.com" target="_blank">yaron.keren@gmail.com</a>></span> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="rtl"><div dir="ltr">Reverted in r250924, thanks!</div><div dir="ltr"><br></div><div dir="ltr">Since llvm-config.h does not provide the HAVE_* defines, does it makes sense for FileSystem.h to include the code</div><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr">#ifdef HAVE_SYS_STAT_H</div><div dir="ltr">#include <sys/stat.h></div><div dir="ltr">#endif</div><div><br></div><div>shouldn't this code go elsewhere? possibly in the code that needs it?</div></div></div></blockquote><div><br></div><div>Ideally, yes, it shouldn't be here, but we need it because we use dev_t, ino_t, and other types from stat.h in file_status.</div><div><br></div><div>Personally I think we should just make this #ifdef LLVM_ON_UNIX, because that matches the uses down below. If we find a system without sys/stat.h, we can deal with it then.</div></div></div></div>