summaryrefslogtreecommitdiff
path: root/ext/standard/flock_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/flock_compat.h')
-rw-r--r--ext/standard/flock_compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/standard/flock_compat.h b/ext/standard/flock_compat.h
index f9f8a4fe4c..2ad95d80f3 100644
--- a/ext/standard/flock_compat.h
+++ b/ext/standard/flock_compat.h
@@ -35,6 +35,12 @@ PHPAPI int php_flock(int fd, int operation);
PHPAPI int flock(int fd, int operation);
#endif
+/* Userland LOCK_* constants */
+#define PHP_LOCK_SH 1
+#define PHP_LOCK_EX 2
+#define PHP_LOCK_UN 3
+#define PHP_LOCK_NB 4
+
#ifdef PHP_WIN32
#define EWOULDBLOCK WSAEWOULDBLOCK
# define fsync _commit