$NetBSD: patch-ae,v 1.3 2011/10/09 03:35:27 dholland Exp $ --- mdmdetect.c.orig 2001-02-11 00:02:58.000000000 +0000 +++ mdmdetect.c @@ -290,7 +292,11 @@ char **av; check_and_lock (cp); sprintf (buf, "/dev/%s", cp); +#ifdef __NetBSD + if ((fd = open (buf, O_RDWR)) < 0) { +#else if ((fd = open (buf, O_RDWR|O_NDELAY)) < 0) { +#endif perror (buf); exit (1); }