1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00

Remove unsupported function 'fdatasync.'

Pass maintainership to lua@

PR:		ports/185791
Submitted by:	Kan Sasaki <sasaki@fcc.ad.jp>
This commit is contained in:
Baptiste Daroussin 2014-01-17 17:06:16 +00:00
parent 60d549fe4d
commit 64146ec6ac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340078
2 changed files with 31 additions and 2 deletions

View File

@ -3,10 +3,11 @@
PORTNAME= posix
PORTVERSION= 31
PORTREVISION= 1
CATEGORIES= devel
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
MAINTAINER= ports@FreeBSD.org
MAINTAINER= lua@FreeBSD.org
COMMENT= POSIX layer for Lua
LICENSE= MIT

View File

@ -1,5 +1,5 @@
--- ./ext/posix/posix.c.orig 2013-09-09 09:15:14.000000000 +0200
+++ ./ext/posix/posix.c 2014-01-10 15:21:47.831554392 +0100
+++ ./ext/posix/posix.c 2014-01-17 18:05:10.399556496 +0100
@@ -68,6 +68,10 @@
#include "lauxlib.h"
#include "lua52compat.h"
@ -11,3 +11,31 @@
#ifndef STREQ
# define STREQ(a, b) (strcmp (a, b) == 0)
#endif
@@ -3697,6 +3701,7 @@
return pushresult(L, fsync(fd), NULL);
}
+#if 0
#if _POSIX_VERSION >= 200112L
/***
synchronize a file's in-core state with storage device without metadata
@@ -3712,6 +3717,7 @@
return pushresult(L, fdatasync(fd), NULL);
}
#endif
+#endif
/***
reposition read/write file offset
@@ -3771,9 +3777,11 @@
MENTRY( Perrno ),
MENTRY( Pexec ),
MENTRY( Pexecp ),
+#if 0
#if _POSIX_VERSION >= 200112L
MENTRY( Pfdatasync ),
#endif
+#endif
MENTRY( Pfcntl ),
MENTRY( Pfileno ),
MENTRY( Pfiles ),