aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorJim Blandy1993-03-11 07:14:54 +0000
committerJim Blandy1993-03-11 07:14:54 +0000
commit6c65530f8a4b3328b29f4ced55889aa898577e4c (patch)
treea7503d46befbb2f1a81563a35d583acd724b931e /src/sysdep.c
parenta87b802fe94be3d85c68c56e52f0343741b56421 (diff)
downloademacs-6c65530f8a4b3328b29f4ced55889aa898577e4c.tar.gz
emacs-6c65530f8a4b3328b29f4ced55889aa898577e4c.zip
* sysdep.c (read_input_waiting): Set e.frame_or_window, not
e.frame; the latter doesn't exist anymore. * sysdep.c (start_of_data): If ORDINARY_LINK is #defined, we don't have the data_start symbol defined, so we'll just use the address of environ. * sysdep.c (init_baud_rate): Use input_fd, instead of fd; the latter is undefined.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 489a9e571d1..6a05e9ca2fe 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -247,7 +247,7 @@ init_baud_rate ()
247#ifdef HAVE_TCATTR 247#ifdef HAVE_TCATTR
248 tcgetattr (0, &sg); 248 tcgetattr (0, &sg);
249#else 249#else
250 ioctl (fd, TCGETA, &sg); 250 ioctl (input_fd, TCGETA, &sg);
251#endif 251#endif
252 ospeed = sg.c_cflag & CBAUD; 252 ospeed = sg.c_cflag & CBAUD;
253#else /* neither VMS nor TERMIOS nor TERMIO */ 253#else /* neither VMS nor TERMIOS nor TERMIO */
@@ -1460,9 +1460,21 @@ start_of_data ()
1460#ifdef DATA_START 1460#ifdef DATA_START
1461 return ((char *) DATA_START); 1461 return ((char *) DATA_START);
1462#else 1462#else
1463#ifdef ORDINARY_LINK
1464 /*
1465 * This is a hack. Since we're not linking crt0.c or pre_crt0.c,
1466 * data_start isn't defined. We take the address of environ, which
1467 * is known to live at or near the start of the system crt0.c, and
1468 * we don't sweat the handful of bytes that might lose.
1469 */
1470 extern char **environ;
1471
1472 return((char *) &environ);
1473#else
1463 extern int data_start; 1474 extern int data_start;
1464 return ((char *) &data_start); 1475 return ((char *) &data_start);
1465#endif 1476#endif /* ORDINARY_LINK */
1477#endif /* DATA_START */
1466} 1478}
1467#endif /* NEED_STARTS (not CANNOT_DUMP or not SYSTEM_MALLOC) */ 1479#endif /* NEED_STARTS (not CANNOT_DUMP or not SYSTEM_MALLOC) */
1468 1480
@@ -1746,7 +1758,7 @@ read_input_waiting ()
1746 1758
1747 /* Scan the chars for C-g and store them in kbd_buffer. */ 1759 /* Scan the chars for C-g and store them in kbd_buffer. */
1748 e.kind = ascii_keystroke; 1760 e.kind = ascii_keystroke;
1749 e.frame = selected_frame; 1761 e.frame_or_window = selected_frame;
1750 for (i = 0; i < nread; i++) 1762 for (i = 0; i < nread; i++)
1751 { 1763 {
1752 XSET (e.code, Lisp_Int, buf[i]); 1764 XSET (e.code, Lisp_Int, buf[i]);