Conditionally include config.h.
authorPavel Janík <Pavel@Janik.cz>
Wed, 19 Dec 2001 07:23:54 +0000 (07:23 +0000)
committerPavel Janík <Pavel@Janik.cz>
Wed, 19 Dec 2001 07:23:54 +0000 (07:23 +0000)
lib-src/ChangeLog
lib-src/emacsserver.c

index 3371772..31d929e 100644 (file)
@@ -1,5 +1,7 @@
 2001-12-19  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
 
+       * emacsserver.c: Conditionally include config.h.
+
        * emacsclient.c: Include "config.h", not <../src/config.h>.
        (main): Parenthesize assignment when used as truth value to
        prevent gcc warnings.
index d68b528..431c5b3 100644 (file)
@@ -26,7 +26,11 @@ Boston, MA 02111-1307, USA.  */
    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 @@ main (argc, argv)
   if (openfiles == 0)
     abort ();
 
-  /* 
+  /*
    * Open up an AF_UNIX socket in this person's home directory
    */
 
@@ -274,7 +278,7 @@ main (argc, argv)
       perror_1 ("unlink");
       exit (1);
     }
-#else  
+#else
   if ((homedir = getenv ("HOME")) == NULL)
     fatal_error ("No home directory\n");
 
@@ -398,14 +402,14 @@ main (argc, argv)
          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;
-       } 
+       }
     }
 }