+2006-10-31 Tim Van Holder <tim.vanholder@gmail.com> (tiny change)
+
+ Fixes to emacsclient.c for GNU/Linux.
+ * emacsclient.c [!WINDOWSNT] <top level>: Include <netinet/in.h> and
+ <sys/ioctl.h>.
+ (INVALID_SOCKET): Define.
+ (initialize_sockets): Put #endif at the right place.
+ (set_local_socket): Use progname, not argv[0].
+
2006-10-31 Juanma Barranquero <lekktu@gmail.com>
* makefile.w32-in (ALL): Add emacsclient.
set_local_socket. Use set_socket. Get answers from server.el with
recv(), not file stream functions.
+
2006-10-09 Eli Zaretskii <eliz@gnu.org>
* makefile.w32-in (../src/config.h): Fix error message.
# define INITIALIZE() (initialize_sockets ())
typedef unsigned long IOCTL_BOOL_ARG;
#else
+# include <netinet/in.h>
+# include <sys/ioctl.h>
+# define INVALID_SOCKET -1
# define HSOCKET int
# define CLOSE_SOCKET close
# define IOCTL ioctl
}
atexit (close_winsock);
-#endif /* WINDOWSNT */
}
+#endif /* WINDOWSNT */
\f
/*
* Read the information needed to set up a TCP comm channel with
we are root. */
if (0 != geteuid ())
{
- fprintf (stderr, "%s: Invalid socket owner\n", argv[0]);
+ fprintf (stderr, "%s: Invalid socket owner\n", progname);
return INVALID_SOCKET;
}
break;