comparison lib/putenv.c @ 2411:90a1662ba7ec

Move inclusion of errno.h so it follows that of sys/types.h, to work around system header problems on AIX 3.2.5. From Bruno Haible.
author Jim Meyering <jim@meyering.net>
date Fri, 07 Apr 2000 09:24:18 +0000
parents 0a751006ca02
children df44e79ce676
comparison
equal deleted inserted replaced
2410:d5d13eebe7d5 2411:90a1662ba7ec
1 /* Copyright (C) 1991, 1994, 1997, 1998 Free Software Foundation, Inc. 1 /* Copyright (C) 1991, 1994, 1997, 1998, 2000 Free Software Foundation, Inc.
2 2
3 NOTE: The canonical source of this file is maintained with the GNU C 3 NOTE: The canonical source of this file is maintained with the GNU C
4 Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu. 4 Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu.
5 5
6 This program is free software; you can redistribute it and/or modify it 6 This program is free software; you can redistribute it and/or modify it
15 15
16 You should have received a copy of the GNU General Public License 16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software Foundation, 17 along with this program; if not, write to the Free Software Foundation,
18 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 18 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19 19
20 #include <errno.h>
21
22 #if HAVE_CONFIG_H 20 #if HAVE_CONFIG_H
23 # include <config.h> 21 # include <config.h>
24 #endif 22 #endif
25 23
26 #include <sys/types.h> 24 #include <sys/types.h>
25
26 /* Include errno.h *after* sys/types.h to work around header problems
27 on AIX 3.2.5. */
28 #include <errno.h>
27 29
28 /* Don't include stdlib.h because some (e.g., Solaris 2.7) declare putenv 30 /* Don't include stdlib.h because some (e.g., Solaris 2.7) declare putenv
29 with a non-const argument. That would conflict with the declaration of 31 with a non-const argument. That would conflict with the declaration of
30 rpl_putenv below (due to the #define putenv rpl_putenv from config.h). */ 32 rpl_putenv below (due to the #define putenv rpl_putenv from config.h). */
31 33