[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make fails in w32menu.c
From: |
Juanma Barranquero |
Subject: |
Re: make fails in w32menu.c |
Date: |
Mon, 22 Sep 2008 14:20:03 +0200 |
On Mon, Sep 22, 2008 at 13:59, martin rudalics <address@hidden> wrote:
> make fails here with current trunk as below.
>
> martin
Try the following patch.
Juanma
diff --git a/src/emacs.c b/src/emacs.c
index 131662c..af4a692 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -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)
{