summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-11-07 23:51:14 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-11-07 23:51:14 +0800
commit235b163953b3f1aa229e0ce737234a702da0a019 (patch)
tree1135d12d1cac6688142b6150668f4256cd898923
parent38423e2c8c0b1e25f11bb642447e17913b0660a9 (diff)
downloadpttbbs-235b163953b3f1aa229e0ce737234a702da0a019.tar
pttbbs-235b163953b3f1aa229e0ce737234a702da0a019.tar.gz
pttbbs-235b163953b3f1aa229e0ce737234a702da0a019.tar.bz2
pttbbs-235b163953b3f1aa229e0ce737234a702da0a019.tar.lz
pttbbs-235b163953b3f1aa229e0ce737234a702da0a019.tar.xz
pttbbs-235b163953b3f1aa229e0ce737234a702da0a019.tar.zst
pttbbs-235b163953b3f1aa229e0ce737234a702da0a019.zip
fix compile error on linux
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5229 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/ccw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pttbbs/mbbsd/ccw.c b/pttbbs/mbbsd/ccw.c
index a72d9c0e..c28de951 100644
--- a/pttbbs/mbbsd/ccw.c
+++ b/pttbbs/mbbsd/ccw.c
@@ -660,8 +660,10 @@ ccw_talk(int fd, int destuid)
char fpath[PATHLEN];
char remote_id[IDLEN+1], local_id[IDLEN+1];
+#ifdef SO_NOSIGPIPE
int on = 1;
setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, (void *)&on, sizeof(on));
+#endif
CCW_CTX ctx = {
.fd = fd,