diff options
| -rw-r--r-- | nt/ChangeLog | 1 | ||||
| -rw-r--r-- | nt/inc/ms-w32.h | 1 | ||||
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/w32.c | 2 |
4 files changed, 7 insertions, 1 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index df6a42595ad..8cb9594d4d0 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | 2012-12-08 Eli Zaretskii <eliz@gnu.org> | 1 | 2012-12-08 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * inc/ms-w32.h (putenv): Redirect to sys_putenv. | 3 | * inc/ms-w32.h (putenv): Redirect to sys_putenv. |
| 4 | (sys_putenv): Add prototype. | ||
| 4 | 5 | ||
| 5 | * config.nt (HAVE_UNSETENV): Define to 1. | 6 | * config.nt (HAVE_UNSETENV): Define to 1. |
| 6 | 7 | ||
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); | |||
| 381 | # undef putenv | 381 | # undef putenv |
| 382 | #endif | 382 | #endif |
| 383 | #define putenv sys_putenv | 383 | #define putenv sys_putenv |
| 384 | extern int sys_putenv (char *); | ||
| 384 | 385 | ||
| 385 | extern int getloadavg (double *, int); | 386 | extern int getloadavg (double *, int); |
| 386 | extern int getpagesize (void); | 387 | extern int getpagesize (void); |
diff --git a/src/ChangeLog b/src/ChangeLog index 0be3eee6726..222be9575b8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-12-08 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * w32.c (unsetenv): Return 0 if the input string is too long. | ||
| 4 | |||
| 1 | 2012-12-08 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2012-12-08 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 6 | ||
| 3 | Use putenv+unsetenv instead of modifying environ directly (Bug#13070). | 7 | Use putenv+unsetenv instead of modifying environ directly (Bug#13070). |
| @@ -1562,7 +1562,7 @@ unsetenv (const char *name) | |||
| 1562 | if (name_len > 32767) | 1562 | if (name_len > 32767) |
| 1563 | { | 1563 | { |
| 1564 | errno = ENOMEM; | 1564 | errno = ENOMEM; |
| 1565 | return -1; | 1565 | return 0; |
| 1566 | } | 1566 | } |
| 1567 | /* It is safe to use 'alloca' with 32K size, since the stack is at | 1567 | /* It is safe to use 'alloca' with 32K size, since the stack is at |
| 1568 | least 2MB, and we set it to 8MB in the link command line. */ | 1568 | least 2MB, and we set it to 8MB in the link command line. */ |