summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/lib/texmfmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/lib/texmfmp.c')
-rw-r--r--Build/source/texk/web2c/lib/texmfmp.c4
1 files changed, 4 insertions, 0 deletions
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