diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-06-18 11:45:32 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-06-18 11:45:32 +0800 |
commit | ddffb6f6493be88677a43407aa175d3abc4b3d3c (patch) | |
tree | 64e34b92f62000bc551f86440b444caf5b8e1662 /mbbsd | |
parent | a4ca9945a1f90b2c65d73ecc454d98028a4ea0d7 (diff) | |
download | pttbbs-ddffb6f6493be88677a43407aa175d3abc4b3d3c.tar pttbbs-ddffb6f6493be88677a43407aa175d3abc4b3d3c.tar.gz pttbbs-ddffb6f6493be88677a43407aa175d3abc4b3d3c.tar.bz2 pttbbs-ddffb6f6493be88677a43407aa175d3abc4b3d3c.tar.lz pttbbs-ddffb6f6493be88677a43407aa175d3abc4b3d3c.tar.xz pttbbs-ddffb6f6493be88677a43407aa175d3abc4b3d3c.tar.zst pttbbs-ddffb6f6493be88677a43407aa175d3abc4b3d3c.zip |
make emacs happy
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3372 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/mbbsd.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index b4a150f4..589554aa 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1654,13 +1654,15 @@ 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 - if( (csock = accept(msock, (struct sockaddr *)&xsin, - &len_of_sock_addr)) < 0 ){ + (csock = accept(msock, (struct sockaddr *)&xsin, + &len_of_sock_addr)) < 0 #else - if( (csock = accept(msock, (struct sockaddr *)&xsin, - (socklen_t *)&len_of_sock_addr)) < 0 ){ + (csock = accept(msock, (struct sockaddr *)&xsin, + (socklen_t *)&len_of_sock_addr)) < 0 #endif + ) { if (errno != EINTR) sleep(1); continue; |