Mercurial > hg > octave-lyh
diff liboctave/util/lo-utils.cc @ 15454:9b9f6dba39e0
build: Use putenv module from gnulib.
* bootstrap_gnulib.conf: Add putenv to list of modules.
* configure.ac: Remove AC_CHECK_FUNCS call for putenv.
* lo-utils.cc: Add gnulib:: decorator on putenv call.
* libgnu/Makefile.am: Automatically updated by addition of putenv.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 29 Sep 2012 15:41:18 -0700 |
parents | 648dabbb4c6b |
children | 259c1f295a1e |
line wrap: on
line diff
--- a/liboctave/util/lo-utils.cc +++ b/liboctave/util/lo-utils.cc @@ -106,7 +106,7 @@ // As far as I can see there's no way to distinguish between the // various errors; putenv doesn't have errno values. - if (putenv (new_item) < 0) + if (gnulib::putenv (new_item) < 0) (*current_liboctave_error_handler) ("putenv (%s) failed", new_item); }