(main): Place #ifdef.in the proper place.
authorDan Nicolaescu <dann@ics.uci.edu>
Mon, 22 Sep 2008 12:42:50 +0000 (12:42 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Mon, 22 Sep 2008 12:42:50 +0000 (12:42 +0000)
src/ChangeLog
src/emacs.c

index 97f11fb..4039e58 100644 (file)
@@ -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.
index 131662c..af4a692 100644 (file)
@@ -1071,9 +1071,9 @@ main (int argc, char **argv)
       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 @@ main (int argc, char **argv)
 #ifdef HAVE_SETSID
       setsid();
 #endif
-    }
 #else /* DOS_NT */
-  fprintf (stderr, "This platform does not support the -daemon flag.\n");
-  exit (1);
+      fprintf (stderr, "This platform does not support the -daemon flag.\n");
+      exit (1);
 #endif /* DOS_NT */
+    }
 
   if (! noninteractive)
     {