summaryrefslogtreecommitdiffstats
path: root/lem/io/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'lem/io/core.c')
-rw-r--r--lem/io/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lem/io/core.c b/lem/io/core.c
index 6f7aa8b..b282583 100644
--- a/lem/io/core.c
+++ b/lem/io/core.c
@@ -322,12 +322,14 @@ luaopen_lem_io_core(lua_State *L)
/* mt.write = <stream_write> */
lua_pushcfunction(L, stream_write);
lua_setfield(L, -2, "write");
+#ifdef TCP_CORK
/* mt.cork = <stream_cork> */
lua_pushcfunction(L, stream_cork);
lua_setfield(L, -2, "cork");
/* mt.uncork = <stream_uncork> */
lua_pushcfunction(L, stream_uncork);
lua_setfield(L, -2, "uncork");
+#endif
/* mt.getpeer = <stream_getpeer> */
lua_pushcfunction(L, stream_getpeer);
lua_setfield(L, -2, "getpeer");