[llvm-commits] [PATCH] Use proper header for OpenBSD/mips64 to find cacheflush()

Brad Smith brad at comstyle.com
Wed Aug 29 08:57:42 PDT 2012


On Tue, Aug 21, 2012 at 04:24:58PM -0400, Brad Smith wrote:
> The following patch allows the code in lib/Support/Memory.cpp to find
> cacheflush() on OpenBSD/mips64.

ping.

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

> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the llvm-commits mailing list