# HG changeset patch # User Andreas Schwab # Date 891857626 0 # Node ID 4812cf2289717b53b99d9a0fe5a49369f0dd78a2 # Parent 49b24e54a5fa99f88c607b3c803952ea48d8f8cf Include and if available. Don't declare geteuid. (print_help_and_exit): Change return type to void. Forward declare it. diff -r 49b24e54a5fa -r 4812cf228971 lib-src/emacsclient.c --- a/lib-src/emacsclient.c Mon Apr 06 10:12:28 1998 +0000 +++ b/lib-src/emacsclient.c Mon Apr 06 10:13:46 1998 +0000 @@ -29,10 +29,12 @@ #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 @@ /* 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 @@ } } +void print_help_and_exit () { fprintf (stderr, @@ -177,6 +182,9 @@ #include #include #include +#ifdef HAVE_UNISTD_H +#include +#endif extern char *strerror (); extern int errno;