diff options
author | Yang Tse <yangsita@gmail.com> | 2012-12-14 18:36:59 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-12-14 18:36:59 +0100 |
commit | 0c677f578e8be6050c976f3923b833fbe8fc9cfb (patch) | |
tree | 5953c9ef2d2eca4b27ddb1a3ac72d1f70429c4e6 /setup_once.h | |
parent | a1035276c1354a2161cfe6c3050d6059060ff8bb (diff) | |
download | c-ares-0c677f578e8be6050c976f3923b833fbe8fc9cfb.tar.gz c-ares-0c677f578e8be6050c976f3923b833fbe8fc9cfb.tar.bz2 c-ares-0c677f578e8be6050c976f3923b833fbe8fc9cfb.zip |
setup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h>
Inclusion of these two header files now done in setup_once.h
Diffstat (limited to 'setup_once.h')
-rw-r--r-- | setup_once.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/setup_once.h b/setup_once.h index bb261e7..3dad534 100644 --- a/setup_once.h +++ b/setup_once.h @@ -76,6 +76,14 @@ #include <stdbool.h> #endif +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + +#ifdef HAVE_SYS_SOCKET_H +#include <sys/socket.h> +#endif + /* * Definition of timeval struct for platforms that don't have it. |