The GNU/HURD is also using the libc. Therefor, endian.h should be included, not machi...
authorSylvestre Ledru <sylvestre@debian.org>
Wed, 5 Jun 2013 09:17:26 +0000 (09:17 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 5 Jun 2013 09:17:26 +0000 (09:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183303 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Host.h

index 7246f51457db703c7f48c2595bdee93b20b9b295..28c4cc790fe501cdbb181813900d85e0352e7efa 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "llvm/ADT/StringMap.h"
 
-#if defined(__linux__)
+#if defined(__linux__) || defined(__GNU__)
 #include <endian.h>
 #else
 #if !defined(BYTE_ORDER) && !defined(LLVM_ON_WIN32)