summaryrefslogtreecommitdiff
path: root/devel/lua-posix/files/patch-ext__posix__unistd.c
blob: 5fb15031059fc1595fae35e36b22cf0b208503e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- ext/posix/unistd.c.orig	2015-03-01 18:26:42 UTC
+++ ext/posix/unistd.c
@@ -326,6 +326,7 @@ Pexecp(lua_State *L)
 }
 
 
+#if 0
 #if LPOSIX_2001_COMPLIANT
 
 #if !HAVE_DECL_FDATASYNC
@@ -350,6 +351,7 @@ Pfdatasync(lua_State *L)
   return pushresult(L, fdatasync(fd), NULL);
 }
 #endif
+#endif
 
 
 /***
@@ -1032,9 +1034,11 @@ static const luaL_Reg posix_unistd_fns[]
 	LPOSIX_FUNC( Pdup2		),
 	LPOSIX_FUNC( Pexec		),
 	LPOSIX_FUNC( Pexecp		),
+#if 0
 #if LPOSIX_2001_COMPLIANT
 	LPOSIX_FUNC( Pfdatasync		),
 #endif
+#endif
 	LPOSIX_FUNC( Pfork		),
 	LPOSIX_FUNC( Pfsync		),
 	LPOSIX_FUNC( Pgetcwd		),