# HG changeset patch # User Pavel Jank # Date 1008746619 0 # Node ID 681d2b02da2d7aef5bd2c9fcbcb549751a2f6971 # Parent 5ce86e17c1053cf5c681d4bf3507d9fdf64e25c0 Conditionally include config.h. diff -r 5ce86e17c105 -r 681d2b02da2d lib-src/emacsserver.c --- a/lib-src/emacsserver.c Wed Dec 19 07:21:17 2001 +0000 +++ b/lib-src/emacsserver.c Wed Dec 19 07:23:39 2001 +0000 @@ -26,7 +26,11 @@ up to the Emacs which then executes them. */ #define NO_SHORTNAMES + +#ifdef HAVE_CONFIG_H #include "config.h" +#endif + #include #undef signal @@ -240,7 +244,7 @@ if (openfiles == 0) abort (); - /* + /* * Open up an AF_UNIX socket in this person's home directory */ @@ -274,7 +278,7 @@ perror_1 ("unlink"); exit (1); } -#else +#else if ((homedir = getenv ("HOME")) == NULL) fatal_error ("No home directory\n"); @@ -398,14 +402,14 @@ fflush (infile); /* If command is close, close connection to client. */ - if (strncmp (code, "Close:", 6) == 0) - if (infd > 2) + if (strncmp (code, "Close:", 6) == 0) + if (infd > 2) { fclose (infile); close (infd); } continue; - } + } } }