svn commit: r395037 - head/devel/lua-posix/files
John Marino
marino at FreeBSD.org
Sat Aug 22 15:24:36 UTC 2015
Author: marino
Date: Sat Aug 22 15:24:35 2015
New Revision: 395037
URL: https://svnweb.freebsd.org/changeset/ports/395037
Log:
devel/lua-posix: Modify patch to include DragonFly
This simple modification to an existing patch was being carried in dports,
but I'm moving it over to ports now that lua-posix has no maintainer.
Modified:
head/devel/lua-posix/files/patch-ext__posix__posix.c
Modified: head/devel/lua-posix/files/patch-ext__posix__posix.c
==============================================================================
--- head/devel/lua-posix/files/patch-ext__posix__posix.c Sat Aug 22 15:14:02 2015 (r395036)
+++ head/devel/lua-posix/files/patch-ext__posix__posix.c Sat Aug 22 15:24:35 2015 (r395037)
@@ -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 ),
More information about the svn-ports-all
mailing list