From: Andreas Schwab Date: Mon, 6 Apr 1998 10:13:46 +0000 (+0000) Subject: Include and if available. X-Git-Tag: emacs-20.3~1687 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7f3bff3e4cf05e54e37047f28c15a2747404125f;p=emacs.git Include and if available. Don't declare geteuid. (print_help_and_exit): Change return type to void. Forward declare it. --- diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 97261b716ae..ae9fb36a9c9 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -29,10 +29,12 @@ Boston, MA 02111-1307, USA. */ #include #include +#ifdef STDC_HEADERS +#include +#endif char *getenv (), *getwd (); char *getcwd (); -int geteuid (); /* This is defined with -D from the compilation command, which extracts it from ../lisp/version.el. */ @@ -47,6 +49,8 @@ char *progname; /* 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' }, @@ -94,6 +98,7 @@ decode_options (argc, argv) } } +void print_help_and_exit () { fprintf (stderr, @@ -177,6 +182,9 @@ main (argc, argv) #include #include #include +#ifdef HAVE_UNISTD_H +#include +#endif extern char *strerror (); extern int errno;