121298544Smrg/* Copyright (C) 2009 Jatin Golani.
221298544Smrg *
321298544Smrg * Permission is hereby granted, free of charge, to any person obtaining a
421298544Smrg * copy of this software and associated documentation files (the "Software"),
521298544Smrg * to deal in the Software without restriction, including without limitation
621298544Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense,
721298544Smrg * and/or sell copies of the Software, and to permit persons to whom the
821298544Smrg * Software is furnished to do so, subject to the following conditions:
921298544Smrg *
1021298544Smrg * The above copyright notice and this permission notice shall be included in
1121298544Smrg * all copies or substantial portions of the Software.
1221298544Smrg *
1321298544Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1421298544Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1521298544Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1621298544Smrg * AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
1721298544Smrg * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1821298544Smrg * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1921298544Smrg *
2021298544Smrg * Except as contained in this notice, the names of the authors or their
2121298544Smrg * institutions shall not be used in advertising or otherwise to promote the
2221298544Smrg * sale, use or other dealings in this Software without prior written
2321298544Smrg * authorization from the authors.
2421298544Smrg */
2521298544Smrg
2621298544Smrg
2721298544Smrg#ifndef _XCB_WINDEFS_H
2821298544Smrg#define _XCB_WINDEFS_H
2921298544Smrg
3021298544Smrg#ifndef WINVER
3121298544Smrg#define WINVER 0x0501 /* required for getaddrinfo/freeaddrinfo defined only for WinXP and above */
3221298544Smrg#endif
3321298544Smrg
3421298544Smrg#include <winsock2.h>
3521298544Smrg#include <ws2tcpip.h>
3621298544Smrg#include <windef.h>
3721298544Smrg
3821298544Smrgstruct iovec  {
391c7386f4Smrg    void *iov_base;    /* Pointer to data.  */
401c7386f4Smrg    int iov_len;       /* Length of data.  */
4121298544Smrg};
4221298544Smrg
4321298544Smrgtypedef unsigned int in_addr_t;
4421298544Smrg
4521298544Smrg#endif /* xcb_windefs.h */
46