diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-09 19:00:41 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-09 19:00:41 +0800 |
commit | 8ece8c40c2e59d2a39e05be707babc8828b5ad52 (patch) | |
tree | a88afea4c467e90b690af31d6ca798bb1100fc32 /mbbsd/mbbsd.c | |
parent | 0e42926d72a2c2d11ab4c5606b680d5d79604939 (diff) | |
download | pttbbs-8ece8c40c2e59d2a39e05be707babc8828b5ad52.tar pttbbs-8ece8c40c2e59d2a39e05be707babc8828b5ad52.tar.gz pttbbs-8ece8c40c2e59d2a39e05be707babc8828b5ad52.tar.bz2 pttbbs-8ece8c40c2e59d2a39e05be707babc8828b5ad52.tar.lz pttbbs-8ece8c40c2e59d2a39e05be707babc8828b5ad52.tar.xz pttbbs-8ece8c40c2e59d2a39e05be707babc8828b5ad52.tar.zst pttbbs-8ece8c40c2e59d2a39e05be707babc8828b5ad52.zip |
Drop Solaris support
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4115 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r-- | mbbsd/mbbsd.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index b112b821..a45c2705 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1712,15 +1712,8 @@ daemon_login(int argc, char *argv[], char *envp[]) /* main loop */ while( 1 ){ len_of_sock_addr = sizeof(xsin); - if( -#if defined(Solaris) && __OS_MAJOR_VERSION__ == 5 && __OS_MINOR_VERSION__ < 7 - (csock = accept(msock, (struct sockaddr *)&xsin, - &len_of_sock_addr)) < 0 -#else - (csock = accept(msock, (struct sockaddr *)&xsin, - (socklen_t *)&len_of_sock_addr)) < 0 -#endif - ) { + if ( (csock = accept(msock, (struct sockaddr *)&xsin, + (socklen_t *)&len_of_sock_addr)) < 0 ) { if (errno != EINTR) sleep(1); continue; |