pike.git / src / call_out.h

version» Context lines:

pike.git/src/call_out.h:1:   /*\   ||| This file a part of uLPC, and is copyright by Fredrik Hubinette   ||| uLPC is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #ifndef CALL_OUT_H   #define CALL_OUT_H      #include "types.h"    - #ifdef HAVE_TIME_H - /* Needed for time_t */ - #include <time.h> - #undef HAVE_TIME_H + #if TIME_WITH_SYS_TIME + # include <sys/time.h> + # include <time.h> + #else + # if HAVE_SYS_TIME_H + # include <sys/time.h> + # else + # if HAVE_TIME_H + # include <time.h> + # endif + # endif   #endif    -  + #undef HAVE_SYS_TIME_H + #undef HAVE_TIME_H + #undef TIME_WITH_SYS_TIME +    struct call_out_s   {    time_t time;    struct object *caller;    struct array *args;   };      typedef struct call_out_s call_out;      extern call_out **pending_calls; /* pointer to first busy pointer */