From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: make fails in w32menu.c Date: Mon, 22 Sep 2008 14:20:03 +0200 Message-ID: References: <48D788A8.3000905@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1222086026 15396 80.91.229.12 (22 Sep 2008 12:20:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Sep 2008 12:20:26 +0000 (UTC) Cc: emacs-devel To: "martin rudalics" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 22 14:21:23 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KhkPj-0002CQ-9Y for ged-emacs-devel@m.gmane.org; Mon, 22 Sep 2008 14:21:15 +0200 Original-Received: from localhost ([127.0.0.1]:43727 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KhkOh-0005mJ-AF for ged-emacs-devel@m.gmane.org; Mon, 22 Sep 2008 08:20:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KhkOd-0005kl-8U for emacs-devel@gnu.org; Mon, 22 Sep 2008 08:20:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KhkOb-0005is-G6 for emacs-devel@gnu.org; Mon, 22 Sep 2008 08:20:06 -0400 Original-Received: from [199.232.76.173] (port=37569 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KhkOb-0005ii-Cd for emacs-devel@gnu.org; Mon, 22 Sep 2008 08:20:05 -0400 Original-Received: from wr-out-0506.google.com ([64.233.184.238]:63862) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KhkOa-0000rO-Tn for emacs-devel@gnu.org; Mon, 22 Sep 2008 08:20:05 -0400 Original-Received: by wr-out-0506.google.com with SMTP id c30so509466wra.14 for ; Mon, 22 Sep 2008 05:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=T6n2vcYYvOJRgBjqhIu1LjtCMk1qYqRdq0s0kf8dXiM=; b=Hsww/0P+9fwUzjnGNNBZyFj6Ommw+1eIvo9kpvpZuRfhQndmgHtkxyymMSBOai2NGP 3YfEFzYIZOJhUQl/H3ImxuZufkaO9alpqw4md0WZpBYbVqITrNUQ/76B6xioeKbF+HY5 qgEWNMKWUIn9ox78pxAQMCa0RWE2QaWvYNrLg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=XxiW1ADJ2mBFnxu+xo5vICxriRKuUv6oIz73OzB+PKAJnDA4xX3Sp67Rybb8C68auv ocLAH2p5AdjNx5xnaMYk5yAHPC+V9sik+FtAjbEpFCwmxz1vC7YAKIj/4NZDgC+eekEE FZjXmww7cCtw5rCRpTCyvpgL4YvGJUyJTQ2aQ= Original-Received: by 10.100.205.15 with SMTP id c15mr2829738ang.67.1222086003705; Mon, 22 Sep 2008 05:20:03 -0700 (PDT) Original-Received: by 10.100.13.13 with HTTP; Mon, 22 Sep 2008 05:20:03 -0700 (PDT) In-Reply-To: <48D788A8.3000905@gmx.at> Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104031 Archived-At: On Mon, Sep 22, 2008 at 13:59, martin rudalics 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) {