diff options
author | Eli Zaretskii <eliz@gnu.org> | 2012-12-08 20:27:37 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2012-12-08 20:27:37 +0200 |
commit | a16e75cd3cb27ea5647774bc71625899f35b2fa6 (patch) | |
tree | 65306facbe512d0ebe30939c82e774db11bd0cb0 /nt | |
parent | 5745a7df2b4abe06d032820f6ec7ddbac9ad5028 (diff) | |
download | emacs-a16e75cd3cb27ea5647774bc71625899f35b2fa6.tar.gz |
Fix putenv and unsetenv on MS-Windows.
src/w32.c (unsetenv): Return 0 if the input string is too long.
nt/inc/ms-w32.h (sys_putenv): Add prototype.
Fixes: debbugs:13070
Diffstat (limited to 'nt')
-rw-r--r-- | nt/ChangeLog | 1 | ||||
-rw-r--r-- | nt/inc/ms-w32.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index df6a42595ad..8cb9594d4d0 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog @@ -1,6 +1,7 @@ 2012-12-08 Eli Zaretskii <eliz@gnu.org> * inc/ms-w32.h (putenv): Redirect to sys_putenv. + (sys_putenv): Add prototype. * config.nt (HAVE_UNSETENV): Define to 1. diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h index 1cbcb7f88f3..3d68efb804d 100644 --- a/nt/inc/ms-w32.h +++ b/nt/inc/ms-w32.h @@ -381,6 +381,7 @@ extern char *get_emacs_configuration_options (void); # undef putenv #endif #define putenv sys_putenv +extern int sys_putenv (char *); extern int getloadavg (double *, int); extern int getpagesize (void); |