40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
$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
|