diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-06-09 18:23:40 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-06-09 18:23:40 +0000 |
commit | 58bdb658aaa1c30a8f3bed46eef880d308fae582 (patch) | |
tree | 5bf880c715daff79c1a2062f2f3ae8336858c83f /src/usocket.h | |
parent | b2724ad2d1cc3768a04270ed3f8014ec65ad133b (diff) | |
download | luasocket-58bdb658aaa1c30a8f3bed46eef880d308fae582.tar.gz luasocket-58bdb658aaa1c30a8f3bed46eef880d308fae582.tar.bz2 luasocket-58bdb658aaa1c30a8f3bed46eef880d308fae582.zip |
Select re-implemented in a nicer way.
Few changes in internal class and group registration.
Lua modules are compiled and built into library.
Dynamic library tested in Linux and Mac OS X.
Diffstat (limited to 'src/usocket.h')
-rw-r--r-- | src/usocket.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/usocket.h b/src/usocket.h index f124bce..9e4b75a 100644 --- a/src/usocket.h +++ b/src/usocket.h | |||
@@ -31,6 +31,11 @@ | |||
31 | #include <netinet/in.h> | 31 | #include <netinet/in.h> |
32 | #include <arpa/inet.h> | 32 | #include <arpa/inet.h> |
33 | 33 | ||
34 | #ifdef __APPLE__ | ||
35 | /* for some reason socklen_t is not defined in mac os x */ | ||
36 | typedef int socklen_t; | ||
37 | #endif | ||
38 | |||
34 | typedef int t_sock; | 39 | typedef int t_sock; |
35 | typedef t_sock *p_sock; | 40 | typedef t_sock *p_sock; |
36 | 41 | ||