fix TYPE_OF_SOCKLEN_T for Darwin

pull/2/head
weidai 2006-01-30 13:59:16 +00:00
parent 8ca1b85770
commit 58f6207c4d
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@
// Unfortunately there is no way to tell whether or not socklen_t is defined.
// To work around this, TYPE_OF_SOCKLEN_T is a macro so that you can change it from the makefile.
#ifndef TYPE_OF_SOCKLEN_T
# if defined(_WIN32) || defined(__CYGWIN__) || defined(__MACH__)
# if defined(_WIN32) || defined(__CYGWIN__)
# define TYPE_OF_SOCKLEN_T int
# else
# define TYPE_OF_SOCKLEN_T ::socklen_t