summaryrefslogtreecommitdiff
path: root/comms/xtel/patches/patch-ae
blob: 22265b0608f1c7ad6c0d156e09de8b9252bf018d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$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);
     }