1 /* $OpenBSD: test-init.c,v 1.2 2015/01/20 04:41:01 krw Exp $ */ 2 /* 3 * Compile with: 4 * cc -I/usr/local/include -o time-test time-test.c -L/usr/local/lib -levent 5 */ 6 #ifdef HAVE_CONFIG_H 7 #include "config.h" 8 #endif 9 10 #ifdef WIN32 11 #include <winsock2.h> 12 #endif 13 14 #include <sys/types.h> 15 #include <sys/stat.h> 16 #ifdef HAVE_SYS_TIME_H 17 #include <sys/time.h> 18 #endif 19 #ifdef HAVE_SYS_SOCKET_H 20 #include <sys/socket.h> 21 #endif 22 #include <fcntl.h> 23 #include <stdlib.h> 24 #include <stdio.h> 25 #include <string.h> 26 #ifdef HAVE_UNISTD_H 27 #include <unistd.h> 28 #endif 29 #include <errno.h> 30 31 #include <event.h> 32 33 int 34 main(int argc, char **argv) 35 { 36 /* Initalize the event library */ 37 event_init(); 38 39 return (0); 40 } 41 42