mirror of https://github.com/BOINC/boinc.git
Fix for cases where socklen_t is #defined in system headers rather than
typedefed. svn path=/trunk/boinc/; revision=2728
This commit is contained in:
parent
3e6e6112eb
commit
84af5827c4
|
@ -16,6 +16,13 @@
|
||||||
//
|
//
|
||||||
// Contributor(s):
|
// Contributor(s):
|
||||||
//
|
//
|
||||||
|
// Revision History:
|
||||||
|
// $Log$
|
||||||
|
// Revision 1.73 2003/12/01 23:22:13 korpela
|
||||||
|
// Fix for cases where socklen_t is #defined in system headers rather than
|
||||||
|
// typedefed.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
|
||||||
#include "cpp.h"
|
#include "cpp.h"
|
||||||
|
|
||||||
|
@ -67,11 +74,13 @@
|
||||||
#include "client_state.h"
|
#include "client_state.h"
|
||||||
#include "message.h"
|
#include "message.h"
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifndef socklen_t
|
||||||
|
#if defined(_WIN32)
|
||||||
typedef int socklen_t;
|
typedef int socklen_t;
|
||||||
#elif !GETSOCKOPT_SOCKLEN_T
|
#elif !GETSOCKOPT_SOCKLEN_T
|
||||||
typedef size_t socklen_t;
|
typedef size_t socklen_t;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
int get_socket_error(int fd) {
|
int get_socket_error(int fd) {
|
||||||
socklen_t intsize = sizeof(int);
|
socklen_t intsize = sizeof(int);
|
||||||
|
|
Loading…
Reference in New Issue