lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #ifndef HEADER_CARES_PLATFORM_H |
| 2 | #define HEADER_CARES_PLATFORM_H |
| 3 | |
| 4 | |
| 5 | /* Copyright 1998 by the Massachusetts Institute of Technology. |
| 6 | * Copyright (C) 2004 - 2011 by Daniel Stenberg et al |
| 7 | * |
| 8 | * Permission to use, copy, modify, and distribute this |
| 9 | * software and its documentation for any purpose and without |
| 10 | * fee is hereby granted, provided that the above copyright |
| 11 | * notice appear in all copies and that both that copyright |
| 12 | * notice and this permission notice appear in supporting |
| 13 | * documentation, and that the name of M.I.T. not be used in |
| 14 | * advertising or publicity pertaining to distribution of the |
| 15 | * software without specific, written prior permission. |
| 16 | * M.I.T. makes no representations about the suitability of |
| 17 | * this software for any purpose. It is provided "as is" |
| 18 | * without express or implied warranty. |
| 19 | */ |
| 20 | |
| 21 | #include "ares_setup.h" |
| 22 | |
| 23 | #if defined(WIN32) && !defined(MSDOS) |
| 24 | |
| 25 | typedef enum { |
| 26 | WIN_UNKNOWN, |
| 27 | WIN_3X, |
| 28 | WIN_9X, |
| 29 | WIN_NT, |
| 30 | WIN_CE |
| 31 | } win_platform; |
| 32 | |
| 33 | win_platform ares__getplatform(void); |
| 34 | |
| 35 | #endif |
| 36 | |
| 37 | #if defined(_WIN32_WCE) |
| 38 | |
| 39 | struct servent *getservbyport(int port, const char *proto); |
| 40 | |
| 41 | #endif |
| 42 | |
| 43 | #endif /* HEADER_CARES_PLATFORM_H */ |