changeset 42178:681d2b02da2d

Conditionally include config.h.
author Pavel Janík <Pavel@Janik.cz>
date Wed, 19 Dec 2001 07:23:39 +0000
parents 5ce86e17c105
children 87092eec53dc
files lib-src/emacsserver.c
diffstat 1 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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 <signal.h>
 #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;
-	} 
+	}
     }
 }