blob: 02cf97cbbdc672aa97becd7f1d6a31db27a73a8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
$NetBSD: patch-opensync_opensync__group.c,v 1.1 2016/02/01 17:10:38 richard Exp $
Recent versions of Illumos implement flock()
--- opensync/opensync_group.c.orig 2007-03-27 11:49:18.000000000 +0000
+++ opensync/opensync_group.c
@@ -26,10 +26,10 @@
extern int errno;
/*
- * On Solaris no flock function exists,
- * we must implenet it here
+ * On Solaris if no flock function exists,
+ * we must implement it here
*/
-#ifdef SOLARIS
+#if defined(SOLARIS) && !defined(LOCK_EX)
#define LOCK_SH 1
#define LOCK_EX 2
|