X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fexecute.c;h=554d3f0fb7a02e8d19f36c88b1d774efecb3a6fe;hb=8866a241ddbf4a459347b7147e325f539e4c07fe;hp=a10ca21ece48b48bc3b3505f053227ec7f80bf5b;hpb=1602f0afed21be664fcf5c42d59db07cc22c56d6;p=gnulib.git diff --git a/lib/execute.c b/lib/execute.c index a10ca21ec..554d3f0fb 100644 --- a/lib/execute.c +++ b/lib/execute.c @@ -1,5 +1,5 @@ /* Creation of autonomous subprocesses. - Copyright (C) 2001-2004, 2006-2012 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2013 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -37,7 +37,7 @@ #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ -/* Native Woe32 API. */ +/* Native Windows API. */ # include # include "w32spawn.h" @@ -54,13 +54,13 @@ #undef close -#ifdef EINTR +#if defined EINTR && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) /* EINTR handling for close(), open(). These functions can return -1/EINTR even though we don't have any signal handlers set up, namely when we get interrupted via SIGSTOP. */ -static inline int +static int nonintr_close (int fd) { int retval; @@ -73,7 +73,7 @@ nonintr_close (int fd) } #define close nonintr_close -static inline int +static int nonintr_open (const char *pathname, int oflag, mode_t mode) { int retval; @@ -106,7 +106,7 @@ execute (const char *progname, { #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - /* Native Woe32 API. */ + /* Native Windows API. */ int orig_stdin; int orig_stdout; int orig_stderr;