[vlc-devel] commit: Add vlc.net.poll() and use in modules/host.lua. (Antoine Cellerier )

Jean-Baptiste Kempf jb at videolan.org
Sat Jan 9 03:22:54 CET 2010


On Sat, Jan 09, 2010 at 03:06:17AM +0100, Jean-Baptiste Kempf wrote :
> On Sat, Jan 09, 2010 at 01:49:48AM +0100, git version control wrote :
> > vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Sat Jan  9 01:49:54 2010 +0100| [8bbd4a3154744c8604da6940356aef508c214586] | committer: Antoine Cellerier 
> > 
> > Add vlc.net.poll() and use in modules/host.lua.
> This doesn't build on Win32 because of POLLRDHUP

Proposed patch?

diff --git a/modules/misc/lua/libs/net.c b/modules/misc/lua/libs/net.c
index fa6e081..071bbb7 100644
--- a/modules/misc/lua/libs/net.c
+++ b/modules/misc/lua/libs/net.c
@@ -479,7 +479,9 @@ void luaopen_net( lua_State *L )
     ADD_CONSTANT( "POLLIN", POLLIN )
     ADD_CONSTANT( "POLLPRI", POLLPRI )
     ADD_CONSTANT( "POLLOUT", POLLOUT )
+#ifdef POLLRDHUP
     ADD_CONSTANT( "POLLRDHUP", POLLRDHUP )
+#endif
     ADD_CONSTANT( "POLLERR", POLLERR )
     ADD_CONSTANT( "POLLHUP", POLLHUP )
     ADD_CONSTANT( "POLLNVAL", POLLNVAL )



-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/



More information about the vlc-devel mailing list