On Jul 21, 2009, at 3:14 AM, John Rose wrote:

I just pulled changes for the first time since 5/20/2009 and ran into the problem described here:
 http://mail.openjdk.java.net/pipermail/bsd-port-dev/2009-May/000645.html

What is the current workaround for Mac?

FTR, here's what got me out of the weeds.  -- John

diff --git a/src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c b/ src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c
--- a/src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c
+++ b/src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c
@@ -132,6 +132,18 @@
 }
 #endif

+#if defined(_ALLBSD_SOURCE) && !defined(__linux__)
+/* Solaris function missing on Darwin. Temporary workaround to allow building.
+ * Ref http://mail.openjdk.java.net/pipermail/bsd-port-dev/2009-May/000645.html
+ */
+static DIR* fake_fdopendir(int dfd) {
+  errno = ENOSYS;
+  return NULL;
+}
+#define fdopendir fake_fdopendir
+#endif
+
+
 /**
  * Call this to throw an internal UnixException when a system/library
  * call fails



Reply via email to