[LLVMdev] llvm build breakage on OpenBSD after adding system_error

Vladimir Kirillov proger at uaoug.org.ua
Wed Nov 24 12:51:21 PST 2010


Hello, llvmdev!

Subj, not all UNIX systems have that much number of errnos, so
I'm attaching the workaround that i've used to build llvm.
Hope this gets resolved.

Thanks!
-------------- next part --------------
diff --git a/include/llvm/System/system_error.h b/include/llvm/System/system_error.h
index 3bfc092..2c0fa5c 100644
--- a/include/llvm/System/system_error.h
+++ b/include/llvm/System/system_error.h
@@ -470,6 +470,16 @@ template <> struct hash<std::error_code>;
 # endif
 #endif
 
+#ifndef EBADMSG
+# define EBADMSG 104
+#endif
+#ifndef ENOLINK
+# define ENOLINK 121
+#endif
+#ifndef EPROTO
+# define EPROTO 134
+#endif
+
 namespace llvm {
 
 template <class T, T v>


More information about the llvm-dev mailing list