aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/emacsclient.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index e3c63b6abb0..ccf0d05d1d5 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -23,9 +23,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
23#undef read 23#undef read
24#undef write 24#undef write
25#undef open 25#undef open
26#ifdef close
27#undef close 26#undef close
28#endif 27#undef signal
29 28
30 29
31#if !defined(HAVE_SOCKETS) && !defined(HAVE_SYSVIPC) 30#if !defined(HAVE_SOCKETS) && !defined(HAVE_SYSVIPC)
@@ -120,7 +119,8 @@ main (argc, argv)
120 strcat (server.sun_path, "/.emacs_server"); 119 strcat (server.sun_path, "/.emacs_server");
121#endif 120#endif
122 121
123 if (connect (s, &server, strlen (server.sun_path) + 2) < 0) 122 if (connect (s, (struct sockaddr *) &server, strlen (server.sun_path) + 2)
123 < 0)
124 { 124 {
125 fprintf (stderr, "%s: ", argv[0]); 125 fprintf (stderr, "%s: ", argv[0]);
126 perror ("connect"); 126 perror ("connect");