aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoakim Verona2013-01-11 00:03:43 +0100
committerJoakim Verona2013-01-11 00:03:43 +0100
commit26f277ba01010776e63623d446f182f5b6f23dd3 (patch)
treeaa2a9a9f31241f687902eafafc1535ea23bd1887 /lib
parent09708f70bd02e7a2edec79e1bcfd04fb9b7f48d3 (diff)
parenta778dd57d0da9004a72320f8082d4f6220f178e2 (diff)
downloademacs-26f277ba01010776e63623d446f182f5b6f23dd3.tar.gz
emacs-26f277ba01010776e63623d446f182f5b6f23dd3.zip
auto upstream
Diffstat (limited to 'lib')
-rw-r--r--lib/getopt.in.h2
-rw-r--r--lib/stdlib.in.h5
-rw-r--r--lib/unistd.in.h2
3 files changed, 7 insertions, 2 deletions
diff --git a/lib/getopt.in.h b/lib/getopt.in.h
index 490994f860f..d9c7d8144ae 100644
--- a/lib/getopt.in.h
+++ b/lib/getopt.in.h
@@ -49,7 +49,9 @@
49 linkers. */ 49 linkers. */
50#if defined __GETOPT_PREFIX && !defined __need_getopt 50#if defined __GETOPT_PREFIX && !defined __need_getopt
51# if !@HAVE_GETOPT_H@ 51# if !@HAVE_GETOPT_H@
52# define __need_system_stdlib_h
52# include <stdlib.h> 53# include <stdlib.h>
54# undef __need_system_stdlib_h
53# include <stdio.h> 55# include <stdio.h>
54# include <unistd.h> 56# include <unistd.h>
55# endif 57# endif
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h
index 3b3b4b1bd43..422ad714c32 100644
--- a/lib/stdlib.in.h
+++ b/lib/stdlib.in.h
@@ -20,8 +20,9 @@
20#endif 20#endif
21@PRAGMA_COLUMNS@ 21@PRAGMA_COLUMNS@
22 22
23#if defined __need_malloc_and_calloc 23#if defined __need_system_stdlib_h || defined __need_malloc_and_calloc
24/* Special invocation convention inside glibc header files. */ 24/* Special invocation conventions inside some gnulib header files,
25 and inside some glibc header files, respectively. */
25 26
26#@INCLUDE_NEXT@ @NEXT_STDLIB_H@ 27#@INCLUDE_NEXT@ @NEXT_STDLIB_H@
27 28
diff --git a/lib/unistd.in.h b/lib/unistd.in.h
index 5127eecd603..f011b71d5f5 100644
--- a/lib/unistd.in.h
+++ b/lib/unistd.in.h
@@ -79,7 +79,9 @@
79/* Solaris declares getcwd not only in <unistd.h> but also in <stdlib.h>. */ 79/* Solaris declares getcwd not only in <unistd.h> but also in <stdlib.h>. */
80/* But avoid namespace pollution on glibc systems. */ 80/* But avoid namespace pollution on glibc systems. */
81#ifndef __GLIBC__ 81#ifndef __GLIBC__
82# define __need_system_stdlib_h
82# include <stdlib.h> 83# include <stdlib.h>
84# undef __need_system_stdlib_h
83#endif 85#endif
84 86
85/* Native Windows platforms declare chdir, getcwd, rmdir in 87/* Native Windows platforms declare chdir, getcwd, rmdir in