From 55b123b5ede22f5c401d2992ae933a2f935dac6c Mon Sep 17 00:00:00 2001
From: Rich Felker <dalias@aerifal.cx>
Date: Wed, 13 Apr 2011 14:55:26 -0400
Subject: add syscall wrapper for flock

it should be noted that flock does not mix well with standard fcntl
locking, but nonetheless some applications will attempt to use flock
instead of fcntl if both exist. options to configure or small patches
may be needed. debian maintainers have plenty of experience with this
unfortunate situation...
---
 src/linux/flock.c | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 src/linux/flock.c

diff --git a/src/linux/flock.c b/src/linux/flock.c
new file mode 100644
index 00000000..87aa5cfe
--- /dev/null
+++ b/src/linux/flock.c
@@ -0,0 +1,7 @@
+#include <sys/file.h>
+#include "syscall.h"
+
+int flock(int fd, int op)
+{
+	return syscall(SYS_flock, fd, op);
+}
-- 
cgit v1.2.3-70-g09d2