mirror of
https://github.com/Interlisp/maiko.git
synced 2026-05-04 07:19:21 +00:00
timer.c: Clean up / simplify includes. (#155)
This commit is contained in:
37
src/timer.c
37
src/timer.c
@@ -18,13 +18,18 @@
|
|||||||
|
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
||||||
#ifdef DOS
|
#include <fcntl.h>
|
||||||
|
#include <setjmp.h>
|
||||||
|
#include <signal.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <sys/types.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#ifdef DOS
|
||||||
#include <dos.h>
|
#include <dos.h>
|
||||||
#include <i32.h> /* "#pragma interrupt" & '_chain_intr'*/
|
#include <i32.h> /* "#pragma interrupt" & '_chain_intr'*/
|
||||||
#include <dos.h> /* defines REGS & other structs */
|
|
||||||
#include <stdio.h> /* define NULL */
|
|
||||||
#include <stdlib.h>
|
|
||||||
#define SIGVTALRM SIGUSR1
|
#define SIGVTALRM SIGUSR1
|
||||||
#define SIGIO SIGREAD
|
#define SIGIO SIGREAD
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
@@ -36,34 +41,16 @@ void (*prev_int_1c)(); /* keeps address of previous 1c handlr*/
|
|||||||
void DOStimer();
|
void DOStimer();
|
||||||
|
|
||||||
unsigned long tick_count = 0; /* approx 18 ticks per sec */
|
unsigned long tick_count = 0; /* approx 18 ticks per sec */
|
||||||
|
#else /* DOS */
|
||||||
#else
|
#include <sys/resource.h>
|
||||||
#include <time.h>
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif /* DOS */
|
#endif /* DOS */
|
||||||
#include <sys/types.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <signal.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
|
|
||||||
#ifndef DOS
|
#ifdef USE_DLPI
|
||||||
#include <sys/resource.h>
|
|
||||||
#endif /* DOS */
|
|
||||||
|
|
||||||
#ifdef OS5
|
|
||||||
#include <stropts.h>
|
#include <stropts.h>
|
||||||
extern int ether_fd;
|
extern int ether_fd;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef LINUX
|
|
||||||
#include <sys/ioctl.h>
|
|
||||||
#include <signal.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <setjmp.h>
|
|
||||||
|
|
||||||
#include "lispemul.h"
|
#include "lispemul.h"
|
||||||
#include "emlglob.h"
|
#include "emlglob.h"
|
||||||
#include "lspglob.h"
|
#include "lspglob.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user