emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: server-start under Windows


From: Kim F. Storm
Subject: Re: server-start under Windows
Date: 08 Nov 2002 15:53:38 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Jason Rumney <address@hidden> writes:

> "Stefan Monnier" <monnier+gnu/address@hidden> 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 <pwd.h>
 #endif /* not VMS */
-
+#ifdef WINDOWSNT
+# include <errno.h>
+# include <fcntl.h>
+  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 <address@hidden> http://www.cua.dk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]