libUPnP  1.6.17
unixutil.h
00001 #ifndef GENLIB_NET_UNIXUTIL_H
00002 #define GENLIB_NET_UNIXUTIL_H
00003 
00004 /*******************************************************************************
00005  *
00006  * Copyright (c) 2000-2003 Intel Corporation 
00007  * All rights reserved. 
00008  *
00009  * Redistribution and use in source and binary forms, with or without 
00010  * modification, are permitted provided that the following conditions are met: 
00011  *
00012  * - Redistributions of source code must retain the above copyright notice, 
00013  * this list of conditions and the following disclaimer. 
00014  * - Redistributions in binary form must reproduce the above copyright notice, 
00015  * this list of conditions and the following disclaimer in the documentation 
00016  * and/or other materials provided with the distribution. 
00017  * - Neither name of Intel Corporation nor the names of its contributors 
00018  * may be used to endorse or promote products derived from this software 
00019  * without specific prior written permission.
00020  * 
00021  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
00022  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
00023  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
00024  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR 
00025  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
00026  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
00027  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
00028  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
00029  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00030  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
00031  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00032  *
00033  ******************************************************************************/
00034 
00035 /* Unix-specific network utilities */
00036 
00037 #include "UpnpInet.h"
00038 
00039 #ifdef WIN32
00040         typedef int socklen_t;
00041         #define EAFNOSUPPORT 97
00042 #else
00043         #include <sys/time.h>
00044         #include <sys/wait.h>
00045 #endif
00046 
00047 #endif /* GENLIB_NET_UNIXUTIL_H */