to bind or accept, cast the pointer, to avoid warnings on systems
which declare prototypes for this.
* emacsclient.c (main): Same.
#undef read
#undef write
#undef open
-#ifdef close
#undef close
-#endif
+#undef signal
#if !defined(HAVE_SOCKETS) && !defined(HAVE_SYSVIPC)
strcat (server.sun_path, "/.emacs_server");
#endif
- if (connect (s, &server, strlen (server.sun_path) + 2) < 0)
+ if (connect (s, (struct sockaddr *) &server, strlen (server.sun_path) + 2)
+ < 0)
{
fprintf (stderr, "%s: ", argv[0]);
perror ("connect");