summaryrefslogtreecommitdiff
path: root/tests/test-pipe-filter-ii2-child.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-pipe-filter-ii2-child.c')
-rw-r--r--tests/test-pipe-filter-ii2-child.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test-pipe-filter-ii2-child.c b/tests/test-pipe-filter-ii2-child.c
index 14c9863783..2610988ad3 100644
--- a/tests/test-pipe-filter-ii2-child.c
+++ b/tests/test-pipe-filter-ii2-child.c
@@ -20,10 +20,15 @@
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
+
+#include "binary-io.h"
int
main ()
{
+ set_binary_mode (STDOUT_FILENO, O_BINARY);
+
/* Repeatedly: Read two integers i and j, then output all integers in the
range i..j, one per line. */
for (;;)