mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
* nt/inc/sys/time.h (_TIMEVAL_DEFINED, struct timevat, timerisset) (timercmp, timerclear): Don't define. Instead, include the system header sys/time.h, and add only the interval timers stuff. This avoids compiler warnings about 'gettimeofday's prototype, and also avoids redefinition of macros from system headers.
21 lines
425 B
C
21 lines
425 B
C
#ifndef SYS_TIME_H_INCLUDED
|
|
#define SYS_TIME_H_INCLUDED
|
|
|
|
#include_next <sys/time.h>
|
|
|
|
#define ITIMER_REAL 0
|
|
#define ITIMER_PROF 1
|
|
|
|
struct itimerval
|
|
{
|
|
struct timeval it_interval; /* timer interval */
|
|
struct timeval it_value; /* current value */
|
|
};
|
|
|
|
int getitimer (int, struct itimerval *);
|
|
int setitimer (int, struct itimerval *, struct itimerval *);
|
|
|
|
#endif /* SYS_TIME_H_INCLUDED */
|
|
|
|
/* end of sys/time.h */
|
|
|