llvm build breakage on OpenBSD after adding system_error

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.


llvm_system_error.diff (465 Bytes)

:(. Apparently POSIX doesn't require these. The attached patch isn't
the correct fix because the value of the macros are undefined in the
various standards. I've been fixing these by using the ERROR the
system would return in conditions where the unsupported ERROR should
be, or, in cases where this information isn't available, EINVAL.

Thanks for reporting the problem! I'll go and fix these, let me know
if it still doesn't work.

- Michael Spencer