Changeset 4321
- Timestamp:
- 03/12/09 15:06:19 (4 years ago)
- Location:
- luci/trunk
- Files:
-
- 3 modified
-
build/gccconfig.mk (modified) (1 diff)
-
libs/nixio/src/nixio.c (modified) (1 diff)
-
libs/nixio/src/sockopt.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
luci/trunk/build/gccconfig.mk
r3882 r4321 1 1 OS ?= $(shell uname) 2 2 3 LUA_SHLIBS = $(shell pkg-config --silence-errors --libs lua5.1 || pkg-config --silence-errors --libs lua )3 LUA_SHLIBS = $(shell pkg-config --silence-errors --libs lua5.1 || pkg-config --silence-errors --libs lua-5.1 || pkg-config --silence-errors --libs lua) 4 4 LUA_LIBS = $(if $(LUA_SHLIBS),$(LUA_SHLIBS),$(firstword $(wildcard /usr/lib/liblua.a /usr/local/lib/liblua.a /opt/local/lib/liblua.a))) 5 LUA_CFLAGS = $(shell pkg-config --silence-errors --cflags lua5.1 || pkg-config --silence-errors --cflags lua )5 LUA_CFLAGS = $(shell pkg-config --silence-errors --cflags lua5.1 || pkg-config --silence-errors --cflags lua-5.1 || pkg-config --silence-errors --cflags lua) 6 6 7 7 CC = gcc -
luci/trunk/libs/nixio/src/nixio.c
r4316 r4321 180 180 NIXIO_PUSH_CONSTANT(SIGUSR1); 181 181 NIXIO_PUSH_CONSTANT(SIGUSR2); 182 NIXIO_PUSH_CONSTANT(SIG POLL);182 NIXIO_PUSH_CONSTANT(SIGIO); 183 183 NIXIO_PUSH_CONSTANT(SIGURG); 184 184 -
luci/trunk/libs/nixio/src/sockopt.c
r4310 r4321 18 18 19 19 #include "nixio.h" 20 #include <sys/types.h> 20 21 #include <sys/socket.h> 21 22 #include <netinet/in.h> … … 149 150 } 150 151 if (!strcmp(option, "cork")) { 152 #ifdef TCP_CORK 151 153 return nixio__gso_int(L, sock->fd, IPPROTO_TCP, TCP_CORK, set); 154 #else 155 return nixio__pstatus(L, !(errno = ENOPROTOOPT)); 156 #endif 152 157 } else if (!strcmp(option, "nodelay")) { 153 158 return nixio__gso_int(L, sock->fd, IPPROTO_TCP, TCP_NODELAY, set);
