mirror of
https://github.com/tmux/tmux.git
synced 2025-04-29 01:08:49 +00:00
It is HAVE_PTY_H, also add a cast to shut gcc up.
This commit is contained in:
parent
c495337e76
commit
4b64bd7b01
4
server.c
4
server.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: server.c,v 1.141 2009-05-13 23:27:00 nicm Exp $ */
|
/* $Id: server.c,v 1.142 2009-05-14 07:58:38 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -601,7 +601,7 @@ server_check_timers(struct client *c)
|
|||||||
if (interval == 0)
|
if (interval == 0)
|
||||||
return;
|
return;
|
||||||
if (tv.tv_sec < c->status_timer.tv_sec ||
|
if (tv.tv_sec < c->status_timer.tv_sec ||
|
||||||
tv.tv_sec - c->status_timer.tv_sec >= interval)
|
((u_int) tv.tv_sec) - c->status_timer.tv_sec >= interval)
|
||||||
c->flags |= CLIENT_STATUS;
|
c->flags |= CLIENT_STATUS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
window.c
4
window.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: window.c,v 1.74 2009-05-13 23:27:00 nicm Exp $ */
|
/* $Id: window.c,v 1.75 2009-05-14 07:58:38 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#ifdef HAVE_LIBUTIL_H
|
#ifdef HAVE_LIBUTIL_H
|
||||||
#include <libutil.h>
|
#include <libutil.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_PTY_H
|
#ifdef HAVE_PTY_H
|
||||||
#include <pty.h>
|
#include <pty.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_UTIL_H
|
#ifdef HAVE_UTIL_H
|
||||||
|
Loading…
Reference in New Issue
Block a user