changeset 98293:5286cdd20519

(main): Place #ifdef.in the proper place.
author Dan Nicolaescu <dann@ics.uci.edu>
date Mon, 22 Sep 2008 12:42:50 +0000
parents 1943be2bc7c2
children d6ab37532b9b
files src/ChangeLog src/emacs.c
diffstat 2 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Mon Sep 22 10:24:31 2008 +0000
+++ b/src/ChangeLog	Mon Sep 22 12:42:50 2008 +0000
@@ -1,3 +1,7 @@
+2008-09-22  Dan Nicolaescu  <dann@ics.uci.edu>
+
+	* emacs.c (main): Place #ifdef.in the proper place.
+
 2008-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
 
 	* emacs.c (standard_args): Add --daemon.
--- a/src/emacs.c	Mon Sep 22 10:24:31 2008 +0000
+++ b/src/emacs.c	Mon Sep 22 12:42:50 2008 +0000
@@ -1071,9 +1071,9 @@
       exit (0);
     }
 
-#ifndef DOS_NT
   if (argmatch (argv, argc, "-daemon", "--daemon", 5, NULL, &skip_args))
     {
+#ifndef DOS_NT
       pid_t f = fork();
       int nfd;
       if (f > 0)
@@ -1093,11 +1093,11 @@
 #ifdef HAVE_SETSID
       setsid();
 #endif
+#else /* DOS_NT */
+      fprintf (stderr, "This platform does not support the -daemon flag.\n");
+      exit (1);
+#endif /* DOS_NT */
     }
-#else /* DOS_NT */
-  fprintf (stderr, "This platform does not support the -daemon flag.\n");
-  exit (1);
-#endif /* DOS_NT */
 
   if (! noninteractive)
     {