Mercurial > emacs
comparison src/termcap.c @ 29804:d8776351a540
[emacs] Test HAVE_FCNTL_H, not USG5. Include lisp.h and unistd.h.
author | Dave Love <fx@gnu.org> |
---|---|
date | Tue, 20 Jun 2000 18:19:03 +0000 |
parents | 3790e185acc0 |
children | f7e2e0758251 |
comparison
equal
deleted
inserted
replaced
29803:3dec4cd5e361 | 29804:d8776351a540 |
---|---|
21 #include <config.h> | 21 #include <config.h> |
22 #endif | 22 #endif |
23 | 23 |
24 #ifdef emacs | 24 #ifdef emacs |
25 | 25 |
26 #include <lisp.h> /* xmalloc is here */ | |
26 /* Get the O_* definitions for open et al. */ | 27 /* Get the O_* definitions for open et al. */ |
27 #include <sys/file.h> | 28 #include <sys/file.h> |
28 #ifdef USG5 | 29 #ifdef HAVE_FCNTL_H |
29 #include <fcntl.h> | 30 #include <fcntl.h> |
31 #endif | |
32 #ifdef HAVE_UNISTD_H | |
33 #include <unistd.h> | |
30 #endif | 34 #endif |
31 | 35 |
32 #else /* not emacs */ | 36 #else /* not emacs */ |
33 | 37 |
34 #ifdef STDC_HEADERS | 38 #ifdef STDC_HEADERS |
311 { | 315 { |
312 register int padcount = 0; | 316 register int padcount = 0; |
313 register int speed; | 317 register int speed; |
314 | 318 |
315 #ifdef emacs | 319 #ifdef emacs |
316 extern baud_rate; | 320 extern int baud_rate; |
317 speed = baud_rate; | 321 speed = baud_rate; |
318 /* For quite high speeds, convert to the smaller | 322 /* For quite high speeds, convert to the smaller |
319 units to avoid overflow. */ | 323 units to avoid overflow. */ |
320 if (speed > 10000) | 324 if (speed > 10000) |
321 speed = - speed / 100; | 325 speed = - speed / 100; |