OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This is a convenience header to pull in the platform-specific headers | 5 // This is a convenience header to pull in the platform-specific headers |
6 // that define at least: | 6 // that define at least: |
7 // | 7 // |
8 // struct addrinfo | 8 // struct addrinfo |
9 // struct sockaddr* | 9 // struct sockaddr* |
10 // getaddrinfo() | 10 // getaddrinfo() |
11 // freeaddrinfo() | 11 // freeaddrinfo() |
12 // AI_* | 12 // AI_* |
13 // | 13 // |
14 // Prefer including this file instead of directly writing the #if / #else, | 14 // Prefer including this file instead of directly writing the #if / #else, |
15 // since it avoids duplicating the platform-specific selections. | 15 // since it avoids duplicating the platform-specific selections. |
16 | 16 |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
18 | 18 |
19 #if defined(OS_WIN) | 19 #if defined(OS_WIN) |
20 #include <ws2tcpip.h> | 20 #include <ws2tcpip.h> |
21 #elif defined(OS_POSIX) | 21 #elif defined(OS_POSIX) |
22 #include <netdb.h> | 22 #include <netdb.h> |
| 23 #include <netinet/in.h> |
| 24 #include <sys/socket.h> |
23 #endif | 25 #endif |
24 | |
OLD | NEW |