diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2007-01-23 05:34:13 +0000 |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2007-01-23 05:34:13 +0000 |
commit | 9d438fe6d8966f645386f8b39c0545c8e676107c (patch) | |
tree | a178d97fe3afda44f510f14b145c5b81020a3ca2 /sysutils/hourglass/files/patch-work.c | |
parent | * Fix build for CURRENT. (diff) |
- FreeBSD patches to include <machine/cpufunc.h> to get rdtsc() function,
instead of using local one in hourglass.h.
- Other minor amd64 compilation fixes.
Notes
Notes:
svn path=/head/; revision=183046
Diffstat (limited to 'sysutils/hourglass/files/patch-work.c')
-rw-r--r-- | sysutils/hourglass/files/patch-work.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/hourglass/files/patch-work.c b/sysutils/hourglass/files/patch-work.c new file mode 100644 index 000000000000..3eebe290b37c --- /dev/null +++ b/sysutils/hourglass/files/patch-work.c @@ -0,0 +1,20 @@ +--- src/work.c.orig Tue Jan 23 04:28:43 2007 ++++ src/work.c Tue Jan 23 05:09:28 2007 +@@ -176,7 +176,7 @@ + + void *monitor_thrd_func (void *arg) + { +- int id = (int)arg; ++ int id = (int)(intptr_t)arg; + + assert (thrd_data[id].s_time != -1); + +@@ -202,7 +202,7 @@ + + void *thrd_func (void *arg) + { +- int id = (int)arg; ++ int id = (int)(intptr_t )arg; + + set_priority (thrd_data[id].pri); + |