diff options
author | Yang Tse <yangsita@gmail.com> | 2012-12-14 17:38:18 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-12-14 17:38:18 +0100 |
commit | a0b207164c6c943adb8b3bf89b375a491b41806a (patch) | |
tree | 4b28e66f9b15d8e86cddd8ad4656ed3cf0ac9a90 /lib/if2ip.h | |
parent | f254c59dc7d3559d062c00704e00431bc4504b67 (diff) | |
download | curl-a0b207164c6c943adb8b3bf89b375a491b41806a.tar.gz |
setup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h>
Inclusion of top two most included header files now done in setup_once.h
Diffstat (limited to 'lib/if2ip.h')
-rw-r--r-- | lib/if2ip.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/if2ip.h b/lib/if2ip.h index 99821b7c6..70842457c 100644 --- a/lib/if2ip.h +++ b/lib/if2ip.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -27,7 +27,6 @@ bool Curl_if_is_interface_name(const char *interf); char *Curl_if2ip(int af, const char *interf, char *buf, int buf_size); #ifdef __INTERIX -#include <sys/socket.h> /* Nedelcho Stanev's work-around for SFU 3.0 */ struct ifreq { @@ -61,6 +60,7 @@ struct ifreq { #define ifr_mtu ifr_ifru.ifru_mtu /* mtu */ #define SIOCGIFADDR _IOW('s', 102, struct ifreq) /* Get if addr */ -#endif /* interix */ + +#endif /* __INTERIX */ #endif /* HEADER_CURL_IF2IP_H */ |