3ee72b3ed9
misuse of function pointer casts and mismatched function calls and arguments. Now this has some chance at running on something other than i386. PKGREVISION -> 12.
16 lines
398 B
Text
16 lines
398 B
Text
$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);
|
|
}
|