aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2015-08-22 15:24:35 +0000
committerJohn Marino <marino@FreeBSD.org>2015-08-22 15:24:35 +0000
commitac90899ab61b69cbfc557da5a78ead08b26bbba0 (patch)
treea9b9faaf5efd85df645951a74bb2833a564a33eb
parent0a0a381f8a04c715dda4a59f6092fb8ffa010c5a (diff)
downloadports-ac90899ab61b69cbfc557da5a78ead08b26bbba0.tar.gz
ports-ac90899ab61b69cbfc557da5a78ead08b26bbba0.zip
Notes
-rw-r--r--devel/lua-posix/files/patch-ext__posix__posix.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/devel/lua-posix/files/patch-ext__posix__posix.c b/devel/lua-posix/files/patch-ext__posix__posix.c
index f2f0c1c47f12..14fc625fd68c 100644
--- a/devel/lua-posix/files/patch-ext__posix__posix.c
+++ b/devel/lua-posix/files/patch-ext__posix__posix.c
@@ -1,17 +1,17 @@
---- ./ext/posix/posix.c.orig 2013-09-09 09:15:14.000000000 +0200
-+++ ./ext/posix/posix.c 2014-01-17 18:05:10.399556496 +0100
+--- ext/posix/posix.c.orig 2013-09-09 07:15:14 UTC
++++ ext/posix/posix.c
@@ -68,6 +68,10 @@
#include "lauxlib.h"
#include "lua52compat.h"
-+#ifdef __FreeBSD__
++#if defined __FreeBSD__ || defined __DragonFly__
+#define O_DSYNC O_SYNC
+#endif
+
#ifndef STREQ
# define STREQ(a, b) (strcmp (a, b) == 0)
#endif
-@@ -3697,6 +3701,7 @@
+@@ -3697,6 +3701,7 @@ static int Pfsync(lua_State *L)
return pushresult(L, fsync(fd), NULL);
}
@@ -19,7 +19,7 @@
#if _POSIX_VERSION >= 200112L
/***
synchronize a file's in-core state with storage device without metadata
-@@ -3712,6 +3717,7 @@
+@@ -3712,6 +3717,7 @@ static int Pfdatasync(lua_State *L)
return pushresult(L, fdatasync(fd), NULL);
}
#endif
@@ -27,7 +27,7 @@
/***
reposition read/write file offset
-@@ -3771,9 +3777,11 @@
+@@ -3771,9 +3777,11 @@ static const luaL_Reg R[] =
MENTRY( Perrno ),
MENTRY( Pexec ),
MENTRY( Pexecp ),