about summary refs log tree commit diff
path: root/converter
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2012-02-13 00:39:14 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2012-02-13 00:39:14 +0000
commita3aba3f5af01e312677cfbe7ff7ccfe37e816a58 (patch)
tree6daf7430257802eec3936eed8e57cb9d1667b239 /converter
parent422f568fe100c629d7f1f9c9ccc8fa9e6554a857 (diff)
downloadnetpbm-mirror-a3aba3f5af01e312677cfbe7ff7ccfe37e816a58.tar.gz
netpbm-mirror-a3aba3f5af01e312677cfbe7ff7ccfe37e816a58.tar.xz
netpbm-mirror-a3aba3f5af01e312677cfbe7ff7ccfe37e816a58.zip
Use _pipe() for pipe() on Windows/Mingw
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1648 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter')
-rw-r--r--converter/other/pnmtops.c2
-rw-r--r--converter/other/pstopnm.c2
-rw-r--r--converter/other/tifftopnm.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/converter/other/pnmtops.c b/converter/other/pnmtops.c
index a2256523..4b56b6a2 100644
--- a/converter/other/pnmtops.c
+++ b/converter/other/pnmtops.c
@@ -772,7 +772,7 @@ static void
 makePipe(int * const pipeFdArray) {
 
     int rc;
-    rc = pipe(pipeFdArray);
+    rc = pm_pipe(pipeFdArray);
     if (rc == -1)
         pm_error("pipe() failed, errno = %d (%s)", errno, strerror(errno));
 }
diff --git a/converter/other/pstopnm.c b/converter/other/pstopnm.c
index 9af1f83d..1dd27140 100644
--- a/converter/other/pstopnm.c
+++ b/converter/other/pstopnm.c
@@ -782,7 +782,7 @@ executeGhostscript(char                     const pstrans[],
     if (strlen(outfile_arg) > 80)
         pm_error("output file spec too long.");
     
-    rc = pipe(pipefd);
+    rc = pm_pipe(pipefd);
     if (rc < 0)
         pm_error("Unable to create pipe to talk to Ghostscript process.  "
                  "errno = %d (%s)", errno, strerror(errno));
diff --git a/converter/other/tifftopnm.c b/converter/other/tifftopnm.c
index 67e7c52f..679dff71 100644
--- a/converter/other/tifftopnm.c
+++ b/converter/other/tifftopnm.c
@@ -727,7 +727,7 @@ spawnWithInputPipe(const char *  const shellCmd,
     int fd[2];
     int rc;
 
-    rc = pipe(fd);
+    rc = pm_pipe(fd);
 
     if (rc != 0)
         pm_asprintf(errorP, "Failed to create pipe for process input.  "