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