Thanks for the heads up, I'll commit this on Tuesday after the long weekend is over<br><div class="gmail_quote"><div dir="ltr">On Mon, Feb 20, 2017 at 7:39 AM Pavel Labath via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">labath added a comment.<br class="gmail_msg">
<br class="gmail_msg">
Seems to work for me after adding the magic.h include. I can't really guarantee that all bots will be happy with it though..<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
================<br class="gmail_msg">
Comment at: llvm/lib/Support/Unix/Path.inc:78<br class="gmail_msg">
 #include <sys/mount.h><br class="gmail_msg">
-#elif defined(__ANDROID__)<br class="gmail_msg">
+#elif defined(__ANDROID__) || defined(__linux__)<br class="gmail_msg">
 #include <sys/vfs.h><br class="gmail_msg">
----------------<br class="gmail_msg">
`__ANDROID__` is a subset of `__linux__`. You can drop the former.<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
================<br class="gmail_msg">
Comment at: llvm/lib/Support/Unix/Path.inc:350<br class="gmail_msg">
+  switch ((uint32_t)Vfs.f_type) {<br class="gmail_msg">
+  case NFS_SUPER_MAGIC:<br class="gmail_msg">
+  case SMB_SUPER_MAGIC:<br class="gmail_msg">
----------------<br class="gmail_msg">
You need to #include <linux/magic.h> to get these constants.<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<a href="https://reviews.llvm.org/D30010" rel="noreferrer" class="gmail_msg" target="_blank">https://reviews.llvm.org/D30010</a><br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
</blockquote></div>