summaryrefslogtreecommitdiff
path: root/ares_private.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-06-19 00:41:03 +0000
committerYang Tse <yangsita@gmail.com>2009-06-19 00:41:03 +0000
commitf34c2a879bad4465b383ecd395bce30310f62166 (patch)
treef951395ecafb89b5a3055b4fe63d6ace12328cb6 /ares_private.h
parent0757cbf7f4ddeca979a0232dcd4fb0ed44c68d17 (diff)
downloadc-ares-f34c2a879bad4465b383ecd395bce30310f62166.tar.gz
c-ares-f34c2a879bad4465b383ecd395bce30310f62166.tar.bz2
c-ares-f34c2a879bad4465b383ecd395bce30310f62166.zip
sclose() function-like macro definition used to close a socket,
now solely based on HAVE_CLOSESOCKET and HAVE_CLOSESOCKET_CAMEL config file preprocessor definitions.
Diffstat (limited to 'ares_private.h')
-rw-r--r--ares_private.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/ares_private.h b/ares_private.h
index 7948440..e70bdb5 100644
--- a/ares_private.h
+++ b/ares_private.h
@@ -4,7 +4,7 @@
/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
- * Copyright (C) 2004-2008 by Daniel Stenberg
+ * Copyright (C) 2004-2009 by Daniel Stenberg
*
* Permission to use, copy, modify, and distribute this
* software and its documentation for any purpose and without
@@ -32,16 +32,11 @@
#if !defined(WIN32) || defined(WATT32)
#include <netinet/in.h>
-/* We define closesocket() here so that we can use this function all over
- the source code for closing sockets. */
-#define closesocket(x) close(x)
#endif
#ifdef WATT32
#include <tcp.h>
#include <sys/ioctl.h>
-#undef closesocket
-#define closesocket(s) close_s(s)
#define writev(s,v,c) writev_s(s,v,c)
#define HAVE_WRITEV 1
#endif