[llvm-commits] [PATCH] Use proper header for OpenBSD/mips64 to find cacheflush()
Brad Smith
brad at comstyle.com
Tue Aug 21 13:24:58 PDT 2012
The following patch allows the code in lib/Support/Memory.cpp to find
cacheflush() on OpenBSD/mips64.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
-------------- next part --------------
Index: lib/Support/Memory.cpp
===================================================================
--- lib/Support/Memory.cpp (revision 161828)
+++ lib/Support/Memory.cpp (working copy)
@@ -17,7 +17,11 @@
#include "llvm/Config/config.h"
#if defined(__mips__)
-#include <sys/cachectl.h>
+# if defined(__OpenBSD__)
+# include <mips64/sysarch.h>
+# else
+# include <sys/cachectl.h>
+# endif
#endif
namespace llvm {
More information about the llvm-commits
mailing list