summaryrefslogtreecommitdiff
path: root/src/cksum.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cksum.c')
-rw-r--r--src/cksum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cksum.c b/src/cksum.c
index 65702a317..b1a8f0c5f 100644
--- a/src/cksum.c
+++ b/src/cksum.c
@@ -44,7 +44,7 @@
#include <stdint.h>
#include "system.h"
#include "fadvise.h"
-#include "xsetmode.h"
+#include "xbinary-io.h"
#ifdef CRCTAB
@@ -194,7 +194,7 @@ cksum (const char *file, bool print_name)
{
fp = stdin;
have_read_stdin = true;
- xsetmode (STDIN_FILENO, O_BINARY);
+ xset_binary_mode (STDIN_FILENO, O_BINARY);
}
else
{