stdlib: port to Solaris 2.6
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Jan 2013 20:32:05 +0000 (12:32 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Jan 2013 22:59:28 +0000 (14:59 -0800)
commit90f065e873a354b9b2a55707ebbba64b5748b47d
tree1d29b5b4b05faed655c553abaedc92542c787b9f
parentbb3630b9f1d07a953ad5d2cfd28fb266dc6f95e1
stdlib: port to Solaris 2.6

Also, the code worked on Solaris 7 through 9 only by accident.
Problem reported by Tom G. Christensen in
<http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
* lib/stdlib.in.h: If __need_system_stdlib_h is defined,
simply include the system stdlib.h.
* lib/getopt.in.h (__need_system_stdlib_h):
* lib/pthread.in.h (__need_system_stdlib_h):
* lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
Define when including <stdlib.h>, to avoid problems at least for
the pthread case on Solaris 2.6 and 7.  These .h files can get by
with the system stdlib.h.
ChangeLog
lib/getopt.in.h
lib/pthread.in.h
lib/stdlib.in.h
lib/unistd.in.h