diff options
| author | Joakim Verona | 2012-12-08 18:26:49 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-12-08 18:26:49 +0100 |
| commit | bf2e04d89c5b9a6aedfce2e55b001bc3e2b2deda (patch) | |
| tree | dbd1f92e1bfa1b9d1f3073972cc5dd0ce3440538 /src/emacs.c | |
| parent | 64fde7a1daeff88ff057f43979fe8fa18094bd82 (diff) | |
| parent | 5745a7df2b4abe06d032820f6ec7ddbac9ad5028 (diff) | |
| download | emacs-bf2e04d89c5b9a6aedfce2e55b001bc3e2b2deda.tar.gz emacs-bf2e04d89c5b9a6aedfce2e55b001bc3e2b2deda.zip | |
auto upstream
Diffstat (limited to 'src/emacs.c')
| -rw-r--r-- | src/emacs.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/emacs.c b/src/emacs.c index 7f1610ce5ef..bd6654aa8cf 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -538,7 +538,7 @@ DEFUN ("invocation-directory", Finvocation_directory, Sinvocation_directory, | |||
| 538 | #ifdef HAVE_TZSET | 538 | #ifdef HAVE_TZSET |
| 539 | /* A valid but unlikely value for the TZ environment value. | 539 | /* A valid but unlikely value for the TZ environment value. |
| 540 | It is OK (though a bit slower) if the user actually chooses this value. */ | 540 | It is OK (though a bit slower) if the user actually chooses this value. */ |
| 541 | static char dump_tz[] = "UtC0"; | 541 | static char const dump_tz[] = "UtC0"; |
| 542 | #endif | 542 | #endif |
| 543 | 543 | ||
| 544 | #ifndef ORDINARY_LINK | 544 | #ifndef ORDINARY_LINK |
| @@ -720,7 +720,7 @@ main (int argc, char **argv) | |||
| 720 | 720 | ||
| 721 | #ifdef G_SLICE_ALWAYS_MALLOC | 721 | #ifdef G_SLICE_ALWAYS_MALLOC |
| 722 | /* This is used by the Cygwin build. */ | 722 | /* This is used by the Cygwin build. */ |
| 723 | setenv ("G_SLICE", "always-malloc", 1); | 723 | xputenv ("G_SLICE=always-malloc"); |
| 724 | #endif | 724 | #endif |
| 725 | 725 | ||
| 726 | #ifdef GNU_LINUX | 726 | #ifdef GNU_LINUX |
| @@ -806,9 +806,8 @@ main (int argc, char **argv) | |||
| 806 | #ifdef HAVE_PERSONALITY_LINUX32 | 806 | #ifdef HAVE_PERSONALITY_LINUX32 |
| 807 | if (dumping && ! getenv ("EMACS_HEAP_EXEC")) | 807 | if (dumping && ! getenv ("EMACS_HEAP_EXEC")) |
| 808 | { | 808 | { |
| 809 | static char heapexec[] = "EMACS_HEAP_EXEC=true"; | ||
| 810 | /* Set this so we only do this once. */ | 809 | /* Set this so we only do this once. */ |
| 811 | putenv (heapexec); | 810 | xputenv ("EMACS_HEAP_EXEC=true"); |
| 812 | 811 | ||
| 813 | /* A flag to turn off address randomization which is introduced | 812 | /* A flag to turn off address randomization which is introduced |
| 814 | in linux kernel shipped with fedora core 4 */ | 813 | in linux kernel shipped with fedora core 4 */ |
| @@ -1312,7 +1311,7 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem | |||
| 1312 | don't pollute Vglobal_environment. */ | 1311 | don't pollute Vglobal_environment. */ |
| 1313 | /* Setting LANG here will defeat the startup locale processing... */ | 1312 | /* Setting LANG here will defeat the startup locale processing... */ |
| 1314 | #ifdef AIX | 1313 | #ifdef AIX |
| 1315 | putenv ("LANG=C"); | 1314 | xputenv ("LANG=C"); |
| 1316 | #endif | 1315 | #endif |
| 1317 | 1316 | ||
| 1318 | init_buffer (); /* Init default directory of main buffer. */ | 1317 | init_buffer (); /* Init default directory of main buffer. */ |