diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-11-27 08:47:09 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-11-27 08:47:09 +0000 |
commit | 50da56dbeeec0cc7856ac06057cb778b502e087b (patch) | |
tree | f434fde619f7989a5c7b381b6480f32f685ba869 /src | |
parent | 7c97e8e40aaa665226fb54449773dc3134e755b2 (diff) | |
download | luasocket-50da56dbeeec0cc7856ac06057cb778b502e087b.tar.gz luasocket-50da56dbeeec0cc7856ac06057cb778b502e087b.tar.bz2 luasocket-50da56dbeeec0cc7856ac06057cb778b502e087b.zip |
Using poll instead of select by default.
Diffstat (limited to 'src')
-rw-r--r-- | src/usocket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usocket.c b/src/usocket.c index 62a2557..2143c7d 100644 --- a/src/usocket.c +++ b/src/usocket.c | |||
@@ -16,7 +16,7 @@ | |||
16 | /*-------------------------------------------------------------------------*\ | 16 | /*-------------------------------------------------------------------------*\ |
17 | * Wait for readable/writable/connected socket with timeout | 17 | * Wait for readable/writable/connected socket with timeout |
18 | \*-------------------------------------------------------------------------*/ | 18 | \*-------------------------------------------------------------------------*/ |
19 | #ifdef SOCK_POLL | 19 | #ifndef SOCK_SELECT |
20 | #include <sys/poll.h> | 20 | #include <sys/poll.h> |
21 | 21 | ||
22 | #define WAITFD_R POLLIN | 22 | #define WAITFD_R POLLIN |