blob: 5d04000124ed9e35880e2f3c147e947e97202dbc (
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
38
39
40
|
$NetBSD: patch-ae,v 1.2 2006/01/24 22:27:07 joerg Exp $
--- pastrix.h.orig 2000-04-27 12:48:56.000000000 +0000
+++ pastrix.h
@@ -20,6 +20,8 @@
#include <stdlib.h>
#include <string.h>
+#include <limits.h>
+
/* The following definitions work only on twos-complement machines */
#ifndef SHORT_MAX
@@ -27,7 +29,7 @@
# define SHORT_MIN (~SHORT_MAX)
#endif
-#ifndef __NetBSD__
+#if !defined(__NetBSD__) && !defined(__DragonFly__)
#ifndef INT_MAX
# define INT_MAX ((int)(((unsigned int) -1) >> 1))
# define INT_MIN (~INT_MAX)
@@ -76,7 +78,7 @@
#include <sys/time.h>
#endif
-#if defined(__linux__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__)
#include <signal.h>
#define DP_SIGHUP SIGHUP
#define DP_SIGTSTP SIGTSTP
@@ -181,7 +183,7 @@ extern long memavail__(void);
#endif
#define move_b(quelle, ziel, size) memmove(ziel, quelle, size)
-#if defined(__linux__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__)
extern long get_cpuusage(void);
extern long get_memusage(void);
#else
|