aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert2015-09-09 15:40:49 -0700
committerPaul Eggert2015-09-09 15:45:44 -0700
commit54ea37308a5f6d7dc803dafaef0030ab5630f68c (patch)
tree1370aa378232074edba053c67cf0660e7fd27cbc /lib-src
parentbf86385345e37e69d03d65ac3e7ce3fc30d9269d (diff)
downloademacs-54ea37308a5f6d7dc803dafaef0030ab5630f68c.tar.gz
emacs-54ea37308a5f6d7dc803dafaef0030ab5630f68c.zip
Refix movemail GCC pacification
Problem reported by Ken Brown in: http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00406.html * lib-src/movemail.c (main): Fix previous change.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/movemail.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c
index c25db625387..84c8ce24286 100644
--- a/lib-src/movemail.c
+++ b/lib-src/movemail.c
@@ -244,17 +244,14 @@ main (int argc, char **argv)
244#ifndef DISABLE_DIRECT_ACCESS 244#ifndef DISABLE_DIRECT_ACCESS
245 245
246 char *lockname = 0; 246 char *lockname = 0;
247
248#ifdef MAIL_USE_MAILLOCK
249 char *spool_name = 0; 247 char *spool_name = 0;
250#endif
251 248
252#ifndef MAIL_USE_SYSTEM_LOCK
253#ifdef MAIL_USE_MAILLOCK 249#ifdef MAIL_USE_MAILLOCK
254 spool_name = mail_spool_name (inname); 250 spool_name = mail_spool_name (inname);
255#endif 251#endif
256 if (! spool_name) 252 if (! spool_name)
257 { 253 {
254#ifndef MAIL_USE_SYSTEM_LOCK
258 /* Use a lock file named after our first argument with .lock appended: 255 /* Use a lock file named after our first argument with .lock appended:
259 If it exists, the mail file is locked. */ 256 If it exists, the mail file is locked. */
260 /* Note: this locking mechanism is *required* by the mailer 257 /* Note: this locking mechanism is *required* by the mailer
@@ -325,8 +322,8 @@ main (int argc, char **argv)
325 } 322 }
326 323
327 delete_lockname = lockname; 324 delete_lockname = lockname;
328 }
329#endif /* not MAIL_USE_SYSTEM_LOCK */ 325#endif /* not MAIL_USE_SYSTEM_LOCK */
326 }
330 327
331#ifdef SIGCHLD 328#ifdef SIGCHLD
332 signal (SIGCHLD, SIG_DFL); 329 signal (SIGCHLD, SIG_DFL);