From 6d8cc4159ab22f8ccffa3332e067d0179abf5a0a Mon Sep 17 00:00:00 2001 From: qmathe Date: Thu, 16 Feb 2012 13:14:08 +0000 Subject: [PATCH] Added a custom unistd.h to work around glibc vs Clang conflict on __block (hack taken from LanguageKit/CodeGen in Etoile) --- unistd.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 unistd.h diff --git a/unistd.h b/unistd.h new file mode 100644 index 0000000..f0ce70d --- /dev/null +++ b/unistd.h @@ -0,0 +1,8 @@ +/* See http://llvm.org/bugs/show_bug.cgi?id=4746 */ +#ifdef __block +# undef __block +# include_next "unistd.h" +# define __block __attribute__((__blocks__(byref))) +#else +# include_next "unistd.h" +#endif