blob: 3f4c1c170cd0fb8e4c704979877ca5804e60f5cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
$NetBSD: patch-aa,v 1.1.1.1 2011/07/27 10:23:48 cherry Exp $
--- src/dos.c.orig 2008-02-05 04:11:38.000000000 +0000
+++ src/dos.c
@@ -26,14 +26,14 @@
#include <errno.h>
#include <fcntl.h>
#include <sys/ioctl.h>
-#if !defined(__FreeBSD__)
+#if !defined(__FreeBSD__) && !defined(__NetBSD__)
#include <syscall.h>
#endif
#include <sys/times.h>
#include <sys/stat.h>
#include <signal.h>
#include <string.h>
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__)
#include <termios.h>
#define termio termios
#define TCGETA TIOCGETA
@@ -44,12 +44,14 @@
#include <time.h>
#if defined __linux__
# include <sys/time.h>
+#elif defined(__NetBSD__)
+# include <time.h>
#else /* !defined __linux */
extern int localtime_r(const __time_t *, __struct_tm *);
# include <ulimit.h>
#endif /* !defined __linux */
#include <unistd.h> /* Also #includes <utime.h> */
-#if !defined(__FreeBSD__)
+#if !defined(__FreeBSD__) && !defined(__NetBSD__)
#include <ustat.h>
#endif
#include <sys/utsname.h>
|