diff --git a/gl/unistd--.h b/gl/unistd--.h
index 1a7fd785b087e3914acfc417c2a4c205db297850..5283d2c573f1085cdbc04413a3753805e22a923c 100644 (file)
--- a/gl/unistd--.h
+++ b/gl/unistd--.h
/* Like unistd.h, but redefine some names to avoid glitches.
- Copyright (C) 2005 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2009-2010 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#undef pipe
#define pipe pipe_safer
+
+#if GNULIB_PIPE2_SAFER
+# undef pipe2
+# define pipe2 pipe2_safer
+#endif