diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-03-01 00:05:36 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-03-01 00:05:36 +0100 |
commit | 56d7f47c9759f096c231a237e18bbcf5668b1d91 (patch) | |
tree | 2c4a4fcf325bc4f64047657175ddce0238030087 /gl/m4/dup2.m4 | |
parent | 3e8d5834d2f68803a04f5750f0122b6648218a1c (diff) | |
download | gnutls-56d7f47c9759f096c231a237e18bbcf5668b1d91.tar.gz |
updated gnulib
Diffstat (limited to 'gl/m4/dup2.m4')
-rw-r--r-- | gl/m4/dup2.m4 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gl/m4/dup2.m4 b/gl/m4/dup2.m4 index fc86e8085b..269cfdc112 100644 --- a/gl/m4/dup2.m4 +++ b/gl/m4/dup2.m4 @@ -1,5 +1,5 @@ -#serial 18 -dnl Copyright (C) 2002, 2005, 2007, 2009-2012 Free Software Foundation, Inc. +#serial 19 +dnl Copyright (C) 2002, 2005, 2007, 2009-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -39,6 +39,9 @@ AC_DEFUN([gl_FUNC_DUP2], /* Many gnulib modules require POSIX conformance of EBADF. */ if (dup2 (2, 1000000) == -1 && errno != EBADF) result |= 16; + /* Flush out a cygwin core dump. */ + if (dup2 (2, -1) != -1 || errno != EBADF) + result |= 32; return result; ]) ], |