1 /*---------------------------------------------------------------------------* 2 3 Copyright (C) 2009-2013 Nintendo. All rights reserved. 4 5 These coded instructions, statements, and computer programs contain 6 proprietary information of Nintendo of America Inc. and/or Nintendo 7 Company Ltd., and are protected by Federal copyright law. They may 8 not be disclosed to third parties or copied or duplicated in any form, 9 in whole or in part, without the prior written consent of Nintendo. 10 11 *---------------------------------------------------------------------------*/ 12 13 #ifndef __LIBCURLCAFEPORT_H 14 #define __LIBCURLCAFEPORT_H 15 #ifdef __ghs__ 16 #include <cafe.h> 17 #else 18 typedef long long int64_t; 19 #include "nonghsheaders.h" 20 #endif 21 #include <cafe/network.h> 22 #include <cafe/net/nc_types.h> 23 24 #define NI_MAXHOST 1025 25 #define NI_MAXSERV 32 26 27 #ifdef __ghs__ 28 #define EAI_ADDRFAMILY 1 29 #define EAI_AGAIN 2 30 #define EAI_BADFLAGS 3 31 #define EAI_FAIL 4 32 #define EAI_FAMILY 5 33 #define EAI_MEMORY 6 34 #define EAI_NODATA 7 35 #define EAI_NONAME 8 36 #define EAI_SERVICE 9 37 #define EAI_SOCKTYPE 10 38 #define EAI_SYSTEM 11 39 #define EAI_BADHINTS 12 40 #define EAI_PROTOCOL 13 41 #define EAI_OVERFLOW 14 42 #endif 43 44 45 #define PF_INET AF_INET 46 47 #endif 48