unsetenv etc.: port to Solaris 11 + GNU Emacs
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 11 Feb 2013 22:58:56 +0000 (14:58 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 11 Feb 2013 22:59:20 +0000 (14:59 -0800)
commit49adc7288d58c1db38d72be52d719e987f71233a
treef18c93c5691507a3cf0cfff2dd5abdee42711d77
parentd704fa2c9fda8c29635b346165a1f2802644cffa
unsetenv etc.: port to Solaris 11 + GNU Emacs

* lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
* lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
* lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
idea but is too painful to fix right now), and without this gnulib
change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
compiling unsetenv.c on Solaris 11.  Fix the problem for
unsetenv.c, and fix other similar occurrences.
ChangeLog
lib/canonicalize-lgpl.c
lib/getaddrinfo.c
lib/getdelim.c
lib/glob.c
lib/random_r.c
lib/setenv.c
lib/tsearch.c
lib/unsetenv.c