blob: 9d4a5bd0ddf8ab73697fbe4f50346ae8eb23c33f (
plain) (
blame)
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
|
--- src/freebsd.c.orig 2007-08-05 08:48:13.000000000 +0400
+++ src/freebsd.c 2007-08-21 22:22:37.000000000 +0400
@@ -43,6 +43,14 @@
#define FREEBSD_DEBUG
#endif
+#if __FreeBSD_version > 700050
+struct wi_req {
+ u_int16_t wi_len;
+ u_int16_t wi_type;
+ u_int16_t wi_val[WI_MAX_DATALEN];
+};
+#endif
+
inline void proc_find_top(struct process **cpu, struct process **mem);
u_int64_t diskio_prev = 0;
@@ -832,7 +840,7 @@
int fd;
struct apm_info info;
- out = (char *)calloc(16, sizeof (char));
+ (char *)out = (char *)calloc(16, sizeof (char));
fd = open(APMDEV, O_RDONLY);
if (fd < 0) {
|