aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-11-27 08:47:09 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-11-27 08:47:09 +0000
commit50da56dbeeec0cc7856ac06057cb778b502e087b (patch)
treef434fde619f7989a5c7b381b6480f32f685ba869 /src
parent7c97e8e40aaa665226fb54449773dc3134e755b2 (diff)
downloadluasocket-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.c2
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