1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[dos] another compilation fix

This commit is contained in:
Witold Filipczyk 2022-05-13 17:09:14 +02:00
parent a2472f2cbb
commit a8e2302713
3 changed files with 6 additions and 3 deletions

View File

@ -77,6 +77,8 @@ safe_write(int fd, const void *buf, size_t count) {
#else /* EINTR && !CONFIG_OS_WIN32 */
#ifdef CONFIG_OS_DOS
int dos_read(int fd, void *buf, size_t size);
int dos_write(int fd, const void *buf, size_t size);
#define safe_read(fd, buf, count) dos_read(fd, buf, count)
#define safe_write(fd, buf, count) dos_write(fd, buf, count)

View File

@ -988,7 +988,7 @@ resume_mouse(void *data)
#endif
#ifndef CONFIG_OS_WIN32
#if !defined(CONFIG_OS_WIN32) && !defined(CONFIG_OS_DOS)
/* Create a bitmask consisting from system-independent envirnoment modifiers.
* This is then complemented by system-specific modifiers in an appropriate
* get_system_env() routine. */

View File

@ -64,10 +64,11 @@ sig_ign(void *x)
}
#endif
#if defined(SIGTSTP) || defined(SIGTTIN)
static void poll_fg(void *);
static struct timer *fg_poll_timer = NULL;
#if defined(SIGTSTP) || defined(SIGTTIN)
static void
sig_tstp(struct terminal *term)
{
@ -94,7 +95,6 @@ sig_tstp(struct terminal *term)
if (fg_poll_timer != NULL) kill_timer(&fg_poll_timer);
install_timer(&fg_poll_timer, FG_POLL_TIME, poll_fg, term);
}
#endif
static void
poll_fg(void *t_)
@ -116,6 +116,7 @@ poll_fg(void *t_)
}
#endif
}
#endif
#ifdef SIGCONT