--- configure.orig	Sun Mar 27 00:44:19 2005
+++ configure	Sun Mar 27 00:44:37 2005
@@ -6060,12 +6060,12 @@
     echo "$as_me:$LINENO: result: irix" >&5
 echo "${ECHO_T}irix" >&6
     ;;
-  *apple-darwin*)
+  *darwin*)
     echo "$as_me:$LINENO: result: macosx" >&5
 echo "${ECHO_T}macosx" >&6
 
 cat >>confdefs.h <<\_ACEOF
-#define O_SYNC 0
+#define IUCLC 0
 _ACEOF
 
     ;;