aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert2014-02-25 11:21:05 -0800
committerPaul Eggert2014-02-25 11:21:05 -0800
commitcc587404052a60d3d4c4bc542d5618e43e8b44ab (patch)
tree9578b559e53c3d8015db6f0662785325940eff6d /lib
parent591debed68a04fe88e4c0225fd53272d2045f327 (diff)
downloademacs-cc587404052a60d3d4c4bc542d5618e43e8b44ab.tar.gz
emacs-cc587404052a60d3d4c4bc542d5618e43e8b44ab.zip
Merge from gnulib.
2014-02-25 unistd: port readlink to Mac OS X 10.3.9 Fixes: debbugs:16825
Diffstat (limited to 'lib')
-rw-r--r--lib/unistd.in.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/unistd.in.h b/lib/unistd.in.h
index 39b128a6da7..622b2287577 100644
--- a/lib/unistd.in.h
+++ b/lib/unistd.in.h
@@ -21,9 +21,23 @@
21#endif 21#endif
22@PRAGMA_COLUMNS@ 22@PRAGMA_COLUMNS@
23 23
24#ifdef _GL_INCLUDING_UNISTD_H
25/* Special invocation convention:
26 - On Mac OS X 10.3.9 we have a sequence of nested includes
27 <unistd.h> -> <signal.h> -> <pthread.h> -> <unistd.h>
28 In this situation, the functions are not yet declared, therefore we cannot
29 provide the C++ aliases. */
30
31#@INCLUDE_NEXT@ @NEXT_UNISTD_H@
32
33#else
34/* Normal invocation convention. */
35
24/* The include_next requires a split double-inclusion guard. */ 36/* The include_next requires a split double-inclusion guard. */
25#if @HAVE_UNISTD_H@ 37#if @HAVE_UNISTD_H@
38# define _GL_INCLUDING_UNISTD_H
26# @INCLUDE_NEXT@ @NEXT_UNISTD_H@ 39# @INCLUDE_NEXT@ @NEXT_UNISTD_H@
40# undef _GL_INCLUDING_UNISTD_H
27#endif 41#endif
28 42
29/* Get all possible declarations of gethostname(). */ 43/* Get all possible declarations of gethostname(). */
@@ -1539,4 +1553,5 @@ _GL_CXXALIASWARN (write);
1539_GL_INLINE_HEADER_END 1553_GL_INLINE_HEADER_END
1540 1554
1541#endif /* _@GUARD_PREFIX@_UNISTD_H */ 1555#endif /* _@GUARD_PREFIX@_UNISTD_H */
1556#endif /* _GL_INCLUDING_UNISTD_H */
1542#endif /* _@GUARD_PREFIX@_UNISTD_H */ 1557#endif /* _@GUARD_PREFIX@_UNISTD_H */