aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert2013-01-22 17:47:44 -0800
committerPaul Eggert2013-01-22 17:47:44 -0800
commitea78b8829899bfd61f9a495fca198efdd797ef50 (patch)
tree6fcfc9e7ab58a7920323158d4e92ec78cf408c1e /lib
parent9d93ce29bdf8aa277123170ef37f942f87e5073b (diff)
downloademacs-ea78b8829899bfd61f9a495fca198efdd797ef50.tar.gz
emacs-ea78b8829899bfd61f9a495fca198efdd797ef50.zip
Merge from gnulib.
Diffstat (limited to 'lib')
-rw-r--r--lib/unistd.in.h20
1 files changed, 2 insertions, 18 deletions
diff --git a/lib/unistd.in.h b/lib/unistd.in.h
index f011b71d5f5..a870fe7b4a3 100644
--- a/lib/unistd.in.h
+++ b/lib/unistd.in.h
@@ -14,29 +14,13 @@
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
15 along with this program; if not, see <http://www.gnu.org/licenses/>. */ 15 along with this program; if not, see <http://www.gnu.org/licenses/>. */
16 16
17#ifndef _@GUARD_PREFIX@_UNISTD_H
18
17#if __GNUC__ >= 3 19#if __GNUC__ >= 3
18@PRAGMA_SYSTEM_HEADER@ 20@PRAGMA_SYSTEM_HEADER@
19#endif 21#endif
20@PRAGMA_COLUMNS@ 22@PRAGMA_COLUMNS@
21 23
22/* Special invocation convention:
23 - On mingw, several headers, including <winsock2.h>, include <unistd.h>,
24 but we need to ensure that both the system <unistd.h> and <winsock2.h>
25 are completely included before we replace gethostname. */
26#if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ \
27 && !defined _GL_WINSOCK2_H_WITNESS && defined _WINSOCK2_H
28/* <unistd.h> is being indirectly included for the first time from
29 <winsock2.h>; avoid declaring any overrides. */
30# if @HAVE_UNISTD_H@
31# @INCLUDE_NEXT@ @NEXT_UNISTD_H@
32# else
33# error unexpected; report this to bug-gnulib@gnu.org
34# endif
35# define _GL_WINSOCK2_H_WITNESS
36
37/* Normal invocation. */
38#elif !defined _@GUARD_PREFIX@_UNISTD_H
39
40/* The include_next requires a split double-inclusion guard. */ 24/* The include_next requires a split double-inclusion guard. */
41#if @HAVE_UNISTD_H@ 25#if @HAVE_UNISTD_H@
42# @INCLUDE_NEXT@ @NEXT_UNISTD_H@ 26# @INCLUDE_NEXT@ @NEXT_UNISTD_H@