diff options
| author | Pavel Janík | 2001-12-19 07:23:54 +0000 |
|---|---|---|
| committer | Pavel Janík | 2001-12-19 07:23:54 +0000 |
| commit | b8509940e96d5e4d9f0c7de480291accbb3b56d1 (patch) | |
| tree | 499c6d578ea7f615ed9db92fa240194c129a2a78 /lib-src | |
| parent | e69233c2de0e722fd9f7805ecf68a6279034de12 (diff) | |
| download | emacs-b8509940e96d5e4d9f0c7de480291accbb3b56d1.tar.gz emacs-b8509940e96d5e4d9f0c7de480291accbb3b56d1.zip | |
Conditionally include config.h.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 2 | ||||
| -rw-r--r-- | lib-src/emacsserver.c | 14 |
2 files changed, 11 insertions, 5 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 33717725b5d..31d929efd86 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2001-12-19 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 1 | 2001-12-19 Pavel Jan,Bm(Bk <Pavel@Janik.cz> |
| 2 | 2 | ||
| 3 | * emacsserver.c: Conditionally include config.h. | ||
| 4 | |||
| 3 | * emacsclient.c: Include "config.h", not <../src/config.h>. | 5 | * emacsclient.c: Include "config.h", not <../src/config.h>. |
| 4 | (main): Parenthesize assignment when used as truth value to | 6 | (main): Parenthesize assignment when used as truth value to |
| 5 | prevent gcc warnings. | 7 | prevent gcc warnings. |
diff --git a/lib-src/emacsserver.c b/lib-src/emacsserver.c index d68b5286db5..431c5b3e4e2 100644 --- a/lib-src/emacsserver.c +++ b/lib-src/emacsserver.c | |||
| @@ -26,7 +26,11 @@ Boston, MA 02111-1307, USA. */ | |||
| 26 | up to the Emacs which then executes them. */ | 26 | up to the Emacs which then executes them. */ |
| 27 | 27 | ||
| 28 | #define NO_SHORTNAMES | 28 | #define NO_SHORTNAMES |
| 29 | |||
| 30 | #ifdef HAVE_CONFIG_H | ||
| 29 | #include "config.h" | 31 | #include "config.h" |
| 32 | #endif | ||
| 33 | |||
| 30 | #include <signal.h> | 34 | #include <signal.h> |
| 31 | #undef signal | 35 | #undef signal |
| 32 | 36 | ||
| @@ -240,7 +244,7 @@ main (argc, argv) | |||
| 240 | if (openfiles == 0) | 244 | if (openfiles == 0) |
| 241 | abort (); | 245 | abort (); |
| 242 | 246 | ||
| 243 | /* | 247 | /* |
| 244 | * Open up an AF_UNIX socket in this person's home directory | 248 | * Open up an AF_UNIX socket in this person's home directory |
| 245 | */ | 249 | */ |
| 246 | 250 | ||
| @@ -274,7 +278,7 @@ main (argc, argv) | |||
| 274 | perror_1 ("unlink"); | 278 | perror_1 ("unlink"); |
| 275 | exit (1); | 279 | exit (1); |
| 276 | } | 280 | } |
| 277 | #else | 281 | #else |
| 278 | if ((homedir = getenv ("HOME")) == NULL) | 282 | if ((homedir = getenv ("HOME")) == NULL) |
| 279 | fatal_error ("No home directory\n"); | 283 | fatal_error ("No home directory\n"); |
| 280 | 284 | ||
| @@ -398,14 +402,14 @@ main (argc, argv) | |||
| 398 | fflush (infile); | 402 | fflush (infile); |
| 399 | 403 | ||
| 400 | /* If command is close, close connection to client. */ | 404 | /* If command is close, close connection to client. */ |
| 401 | if (strncmp (code, "Close:", 6) == 0) | 405 | if (strncmp (code, "Close:", 6) == 0) |
| 402 | if (infd > 2) | 406 | if (infd > 2) |
| 403 | { | 407 | { |
| 404 | fclose (infile); | 408 | fclose (infile); |
| 405 | close (infd); | 409 | close (infd); |
| 406 | } | 410 | } |
| 407 | continue; | 411 | continue; |
| 408 | } | 412 | } |
| 409 | } | 413 | } |
| 410 | } | 414 | } |
| 411 | 415 | ||