2003-09-25 17:55:17 +00:00
|
|
|
/*
|
|
|
|
* Compile with:
|
|
|
|
* cc -I/usr/local/include -o time-test time-test.c -L/usr/local/lib -levent
|
|
|
|
*/
|
2007-07-30 23:56:05 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
2009-01-27 22:30:46 +00:00
|
|
|
#include "event-config.h"
|
2007-07-30 23:56:05 +00:00
|
|
|
#endif
|
|
|
|
|
2003-09-25 17:55:17 +00:00
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/stat.h>
|
2009-11-05 20:37:19 +00:00
|
|
|
#ifdef _EVENT_HAVE_SYS_TIME_H
|
2003-09-25 17:55:17 +00:00
|
|
|
#include <sys/time.h>
|
2009-11-05 20:37:19 +00:00
|
|
|
#endif
|
2009-01-27 22:30:46 +00:00
|
|
|
#ifdef _EVENT_HAVE_SYS_SOCKET_H
|
2003-09-25 17:55:17 +00:00
|
|
|
#include <sys/socket.h>
|
2007-09-20 19:08:20 +00:00
|
|
|
#endif
|
2003-09-25 17:55:17 +00:00
|
|
|
#include <fcntl.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
2009-11-05 20:37:19 +00:00
|
|
|
#ifndef WIN32
|
2003-09-25 17:55:17 +00:00
|
|
|
#include <unistd.h>
|
2009-11-05 20:37:19 +00:00
|
|
|
#endif
|
2003-09-25 17:55:17 +00:00
|
|
|
#include <errno.h>
|
|
|
|
|
|
|
|
#include <event.h>
|
|
|
|
|
|
|
|
int
|
|
|
|
main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
/* Initalize the event library */
|
|
|
|
event_init();
|
|
|
|
|
|
|
|
return (0);
|
|
|
|
}
|
|
|
|
|