<div dir="rtl"><div dir="ltr">So, when LLVM is installed on Unix, LLVM_ON_UNIX is defined from llvm-config.h but HAVE_SYS_STAT_H is never defined, making FileSystem.h use the Unix dev_t, ino_t *without* including <sys/stat.h>.</div><div dir="ltr">Since this had been working for a long time it means either <sys/stat.h> is included indirectly or that dev_t, ino_t are defined some other way (sys/types.h?). In any case, this include is incosistent with its usage.<br></div><div dir="ltr"><br></div></div><div class="gmail_extra"><div dir="ltr"><br><div class="gmail_quote">2015-10-22 0:38 GMT+03:00 Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" target="_blank">rnk@google.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 .8ex;border-left:1px #ccc solid;border-right:1px #ccc solid;padding-left:1ex;padding-right:1ex"><div class="gmail_extra"><span class=""><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></span><div class="gmail_quote"><span class=""><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></span><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></blockquote></div></div></div>