summaryrefslogtreecommitdiff
path: root/src/a2netcompat.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-11-26 12:50:07 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-11-26 12:50:07 +0000
commit72d523b990a71ce71ecd77df37864d4382cf8640 (patch)
tree05a7c3d53d8e2ee2db8f29f8cfcfead3ef363413 /src/a2netcompat.h
parente074d933481a0c0b1d6d4b246c465c76db2582d3 (diff)
2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Applied aria2-1.0.1-mingw.patch. Use SOCKET_ERRNO instead of errno if the code is used both linux and mingw. Collected 4th and 5th argument types for getsockopt and setsockopt. * src/SocketCore.cc * src/a2netcompat.h * test/SocketCoreTest.cc
Diffstat (limited to 'src/a2netcompat.h')
-rw-r--r--src/a2netcompat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/a2netcompat.h b/src/a2netcompat.h
index 2affea81..7e081f7b 100644
--- a/src/a2netcompat.h
+++ b/src/a2netcompat.h
@@ -50,12 +50,12 @@
#endif // !__CYGWIN__
#ifdef __MINGW32__
-# define SOCKOPT_T char
+# define a2_sockopt_t char *
# define HAVE_GETADDRINFO
# undef HAVE_GAI_STRERROR
# undef gai_strerror
#else
-# define SOCKOPT_T int
+# define a2_sockopt_t int *
#endif // __MINGW32__
#ifdef HAVE_NETDB_H