File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / libevent / test / test-init.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:02:54 2012 UTC (12 years, 8 months ago) by misho
Branches: libevent, MAIN
CVS tags: v1_4_14bp0, v1_4_14b, HEAD
libevent

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>