You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-lang/ghc/files/ghc-6.12.3-darwin8.patch

19 lines
483 B

Workaround headers problem in Darwin 8 as well.
--- rts/PosixSource.h
+++ rts/PosixSource.h
@@ -11,6 +11,13 @@
#include <ghcplatform.h>
+#if defined(darwin_HOST_OS)
+/* unfortunately the hack below only works for Darwin 9 and
+ * above, so as hack include sys/types early (before setting
+ * _POSIX_C_SOURCE) (this obviously obsoletes the hack below) */
+#include <sys/types.h>
+#endif
+
#define _POSIX_SOURCE 1
#define _POSIX_C_SOURCE 199506L
#define _XOPEN_SOURCE 500