Part 2 of the fix for threaded RTS problems on Solaris and possibly
*BSD (Part 1 was the same change in ghc/includes/Rts.h).
#undef PACKAGE_TARNAME
#undef PACKAGE_VERSION
#undef PACKAGE_TARNAME
#undef PACKAGE_VERSION
+/* Needed to get the macro version of errno on some OSs (eg. Solaris).
+ We must do this, because these libs are only compiled once, but
+ must work in both single-threaded and multi-threaded programs. */
+#define _REENTRANT 1
+
#include "HsFFI.h"
#include <stdio.h>
#include "HsFFI.h"
#include <stdio.h>