summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2011-10-01 01:20:45 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2011-10-01 01:20:45 +0000
commita2f750fd7b765a959f6365ca550f3cb80c68a46b (patch)
treee3cb0217821dd8eab717d559d5e11d1b6260b5c1 /Build
parent6686c3d0fc662af60077051bc08aeb1e319048c2 (diff)
write(sock, buff, n) and send(sock, buff, n, 0) are different in winsock
git-svn-id: svn://tug.org/texlive/trunk@24162 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/web2c/lib/ChangeLog5
-rw-r--r--Build/source/texk/web2c/lib/texmfmp.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/lib/ChangeLog b/Build/source/texk/web2c/lib/ChangeLog
index 7cf1287d475..aeebbdc05e2 100644
--- a/Build/source/texk/web2c/lib/ChangeLog
+++ b/Build/source/texk/web2c/lib/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-01 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * texmfmp.c: write (sock, buff, n) and send (sock, buff, n, 0)
+ for ipc_snd () are different in winsock.
+
2011-09-30 Peter Breitenlohner <peb@mp.mpg.de>
* texmfmp.c [Aleph]: Remove unused variable `eightbitp'.
diff --git a/Build/source/texk/web2c/lib/texmfmp.c b/Build/source/texk/web2c/lib/texmfmp.c
index fbb02aa0736..f1bf7f95109 100644
--- a/Build/source/texk/web2c/lib/texmfmp.c
+++ b/Build/source/texk/web2c/lib/texmfmp.c
@@ -1113,7 +1113,11 @@ ipc_snd (int n, int is_eof, char *data)
fprintf(stderr, "%d\t%d\n", ourmsg.msg.namelength, ourmsg.msg.eof);
fputs ("tex: Writing to socket...\n", stderr);
#endif
+#if defined(WIN32)
+ if (send (sock, (char *)&ourmsg, n, 0) != n) {
+#else
if (write (sock, &ourmsg, n) != n) {
+#endif
ipc_close_out ();
}
#ifdef IPC_DEBUG