From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: server-start under Windows Date: 08 Nov 2002 15:53:38 +0100 Sender: emacs-devel-admin@gnu.org Message-ID: <5x8z04p0y5.fsf@kfs2.cua.dk> References: <200211061414.gA6EE2CB019778@smtp-server1.tampabay.rr.com> <200211061555.gA6Ftrn02958@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1036764539 25879 80.91.224.249 (8 Nov 2002 14:08:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 8 Nov 2002 14:08:59 +0000 (UTC) Cc: "Stefan Monnier" , bkey1@tampabay.rr.com, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18A9og-0006jH-00 for ; Fri, 08 Nov 2002 15:08:58 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18A9yB-00082a-00 for ; Fri, 08 Nov 2002 15:18:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18A9kq-0003C3-00; Fri, 08 Nov 2002 09:05:00 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18A9Zz-0007mB-00 for emacs-devel@gnu.org; Fri, 08 Nov 2002 08:53:47 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18A9Zw-0007lh-00 for emacs-devel@gnu.org; Fri, 08 Nov 2002 08:53:46 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18A9Zw-0007lL-00; Fri, 08 Nov 2002 08:53:44 -0500 Original-Received: from kfs2.cua.dk.cua.dk (kfs2.local.filanet.dk [192.168.1.182]) by mail.filanet.dk (Postfix) with SMTP id D08EB7C019; Fri, 8 Nov 2002 13:53:41 +0000 (GMT) Original-To: Jason Rumney In-Reply-To: Original-Lines: 43 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9261 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9261 Jason Rumney writes: > "Stefan Monnier" writes: > > > I only wrote server.el which uses make-network-process. > > You'll need to hack process.c like you did for emacsclient.c to make > > it understand `local' connections (I assume that w32 has unix-domain > > sockets of some sort). > > It doesn't, which makes me wonder how much hacking went into > emacsclient.c, or maybe it will also start failing once the server > side is working. I foun this in the patch to emacsclient.c -- it seems to assume that AF_UNIX is supported (but just not documented)?! That may be true, but it seems questionalbe to me... --- _21.3/lib-src/emacsclient.c 2002-09-30 20:45:30.000000000 -0400 +++ 21.3/lib-src/emacsclient.c 2002-11-06 23:47:58.000000000 -0500 @@ -40,7 +40,18 @@ #else # include #endif /* not VMS */ - +#ifdef WINDOWSNT +# include +# include + extern int _execvp (const char*, char* const*); +# ifndef HAVE_STRUCT_SOCKADDR_UN + struct sockaddr_un + { + short int sun_family; /* AF_UNIX */ + char sun_path[108]; /* path name (gag) */ + }; +# endif +#endif char *getenv (), *getwd (); char *getcwd (); -- Kim F. Storm http://www.cua.dk