blob: 8aef91c0afa0b4c58bc9461591554cefbc0b4e0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-ac,v 1.2 1999/02/10 15:09:56 frueauf Exp $
--- src/nighthawk.cc.BAK Sun Feb 7 01:01:57 1999
+++ src/nighthawk.cc Sun Feb 7 01:02:10 1999
@@ -85,7 +85,11 @@
FILE *fp;
if((fp = fopen(filename,mode)) != NULL)
+#ifdef __NetBSD__
+ flock(fp->_file,LOCK_EX);
+#else
flock(fp->_fileno,LOCK_EX);
+#endif
return fp;
}
|