mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
[dos] another compilation fix
This commit is contained in:
parent
a2472f2cbb
commit
a8e2302713
@ -77,6 +77,8 @@ safe_write(int fd, const void *buf, size_t count) {
|
|||||||
#else /* EINTR && !CONFIG_OS_WIN32 */
|
#else /* EINTR && !CONFIG_OS_WIN32 */
|
||||||
|
|
||||||
#ifdef CONFIG_OS_DOS
|
#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_read(fd, buf, count) dos_read(fd, buf, count)
|
||||||
#define safe_write(fd, buf, count) dos_write(fd, buf, count)
|
#define safe_write(fd, buf, count) dos_write(fd, buf, count)
|
||||||
|
|
||||||
|
@ -988,7 +988,7 @@ resume_mouse(void *data)
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_OS_WIN32
|
#if !defined(CONFIG_OS_WIN32) && !defined(CONFIG_OS_DOS)
|
||||||
/* Create a bitmask consisting from system-independent envirnoment modifiers.
|
/* Create a bitmask consisting from system-independent envirnoment modifiers.
|
||||||
* This is then complemented by system-specific modifiers in an appropriate
|
* This is then complemented by system-specific modifiers in an appropriate
|
||||||
* get_system_env() routine. */
|
* get_system_env() routine. */
|
||||||
|
@ -64,10 +64,11 @@ sig_ign(void *x)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(SIGTSTP) || defined(SIGTTIN)
|
||||||
static void poll_fg(void *);
|
static void poll_fg(void *);
|
||||||
static struct timer *fg_poll_timer = NULL;
|
static struct timer *fg_poll_timer = NULL;
|
||||||
|
|
||||||
#if defined(SIGTSTP) || defined(SIGTTIN)
|
|
||||||
static void
|
static void
|
||||||
sig_tstp(struct terminal *term)
|
sig_tstp(struct terminal *term)
|
||||||
{
|
{
|
||||||
@ -94,7 +95,6 @@ sig_tstp(struct terminal *term)
|
|||||||
if (fg_poll_timer != NULL) kill_timer(&fg_poll_timer);
|
if (fg_poll_timer != NULL) kill_timer(&fg_poll_timer);
|
||||||
install_timer(&fg_poll_timer, FG_POLL_TIME, poll_fg, term);
|
install_timer(&fg_poll_timer, FG_POLL_TIME, poll_fg, term);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
poll_fg(void *t_)
|
poll_fg(void *t_)
|
||||||
@ -116,6 +116,7 @@ poll_fg(void *t_)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef SIGCONT
|
#ifdef SIGCONT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user