Salut,


incerc sa umblu prin thttpd sa nu mai stea mult in select() si am vrut 
sa-i pun delay-ul la 10sec. citand un exemplu din man select:

       #include <stdio.h>
       #include <sys/time.h>
       #include <sys/types.h>
       #include <unistd.h>

       int
       main(void) {
           fd_set rfds;
           struct timeval tv;
           int retval;

           /* Watch stdin (fd 0) to see when it has input. */
           FD_ZERO(&rfds);
           FD_SET(0, &rfds);
           /* Wait up to five seconds. */
           tv.tv_sec = 5;
           tv.tv_usec = 0;

           retval = select(1, &rfds, NULL, NULL, &tv);


am pus in php_thttpd toate liniile din #include, si urmatoarele trei 
randuri:

struct timeval tv;

tv.tv_sec = 10;
tv.tv_usec = 0;

cand dau make la thttpd, primesc urmatoarea eroare:

php_thttpd.c:47: parse error before `.'

care ar putea fi problema ?


Eugen


---
Pentru dezabonare, trimiteti mail la 
[EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'.
REGULI, arhive si alte informatii: http://www.lug.ro/mlist/


Raspunde prin e-mail lui