summaryrefslogtreecommitdiff
path: root/sysutils/strace/patches/patch-ap
blob: 54877742f00381441749fb02925b0d027cdbc12d (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
$NetBSD: patch-ap,v 1.3 2007/12/05 16:31:01 christos Exp $

--- resource.c.orig	2006-10-15 21:17:52.000000000 -0400
+++ resource.c	2007-12-05 11:04:00.000000000 -0500
@@ -37,7 +37,7 @@
 #include <sys/times.h>
 #include <linux/kernel.h>
 #endif /* LINUX */
-#if defined(SVR4) || defined(FREEBSD)
+#if defined(SVR4) || defined(ALLBSD)
 #include <sys/times.h>
 #include <sys/time.h>
 #endif
@@ -454,9 +454,11 @@
 			tprintf("{...}");
 		else {
 			tprintf("{tms_utime=%lu, tms_stime=%lu, ",
-				tbuf.tms_utime, tbuf.tms_stime);
+				(unsigned long)tbuf.tms_utime,
+				(unsigned long)tbuf.tms_stime);
 			tprintf("tms_cutime=%lu, tms_cstime=%lu}",
-				tbuf.tms_cutime, tbuf.tms_cstime);
+				(unsigned long)tbuf.tms_cutime,
+				(unsigned long)tbuf.tms_cstime);
 		}
 	}
 	return 0;