Don't declare geteuid.
(print_help_and_exit): Change return type to void. Forward
declare it.
#include <stdio.h>
#include <getopt.h>
+#ifdef STDC_HEADERS
+#include <stdlib.h>
+#endif
char *getenv (), *getwd ();
char *getcwd ();
-int geteuid ();
/* This is defined with -D from the compilation command,
which extracts it from ../lisp/version.el. */
/* Nonzero means don't wait for a response from Emacs. --no-wait. */
int nowait = 0;
+void print_help_and_exit ();
+
struct option longopts[] =
{
{ "no-wait", no_argument, NULL, 'n' },
}
}
+void
print_help_and_exit ()
{
fprintf (stderr,
#include <sys/un.h>
#include <sys/stat.h>
#include <errno.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
extern char *strerror ();
extern int errno;