]> git.eshelyaron.com Git - emacs.git/commitdiff
(main) <homedir>: Make its declaration conditional
authorEli Zaretskii <eliz@gnu.org>
Tue, 2 Jan 2001 13:52:04 +0000 (13:52 +0000)
committerEli Zaretskii <eliz@gnu.org>
Tue, 2 Jan 2001 13:52:04 +0000 (13:52 +0000)
on SERVER_HOME_DIR, to avoid compiler warnings.

lib-src/emacsserver.c

index fd532ce976cfcbe3de273b06bbc698d150a6e445..7394a9a10b9fbe6705f58b7e205f28b56a0bf31f 100644 (file)
@@ -220,7 +220,9 @@ main (argc, argv)
   size_t fromlen;
 #endif
   struct sockaddr_un server, fromunix;
+#ifdef SERVER_HOME_DIR
   char *homedir;
+#endif
   char *str, string[BUFSIZ], code[BUFSIZ];
   FILE *infile;
   FILE **openfiles;