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.
up to the Emacs which then executes them. */
#define NO_SHORTNAMES
+
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
+
#include <signal.h>
#undef signal
if (openfiles == 0)
abort ();
- /*
+ /*
* Open up an AF_UNIX socket in this person's home directory
*/
perror_1 ("unlink");
exit (1);
}
-#else
+#else
if ((homedir = getenv ("HOME")) == NULL)
fatal_error ("No home directory\n");
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;
- }
+ }
}
}