]> code.delx.au - gnu-emacs/blobdiff - src/callproc.c
Simplify use of O_BINARY
[gnu-emacs] / src / callproc.c
index 8578556b6955de7bf1dca18a498e59048e5d369e..3a40626de48b49e7a5e8ed88d8190de7703078d7 100644 (file)
@@ -565,8 +565,7 @@ call_process (ptrdiff_t nargs, Lisp_Object *args, int filefd,
     {
       /* Since CRLF is converted to LF within `decode_coding', we
         can always open a file with binary mode.  */
-      callproc_fd[CALLPROC_PIPEREAD] = emacs_open (tempfile,
-                                                  O_RDONLY | O_BINARY, 0);
+      callproc_fd[CALLPROC_PIPEREAD] = emacs_open (tempfile, O_RDONLY, 0);
       if (callproc_fd[CALLPROC_PIPEREAD] < 0)
        {
          int open_errno = errno;