freebsd-ports/sysutils/hourglass/files/patch-main.c
Craig Rodrigues 9d438fe6d8 - FreeBSD patches to include <machine/cpufunc.h> to get rdtsc() function,
instead of using local one in hourglass.h.
- Other minor amd64 compilation fixes.
2007-01-23 05:34:13 +00:00

20 lines
617 B
C

--- src/main.c.orig Tue Jan 23 04:45:05 2007
+++ src/main.c Tue Jan 23 04:46:29 2007
@@ -168,7 +168,7 @@
retval = pthread_create (&thrd_data[i].thrd,
NULL,
thrd_func,
- (void *)i);
+ (void *)(intptr_t)i);
if (retval != 0) {
printf ("Hrm: error creating thread %d\n", i);
exit (-1);
@@ -178,7 +178,7 @@
retval = pthread_create (&thrd_data[i].monitor_thrd,
NULL,
monitor_thrd_func,
- (void *)i);
+ (void *)(intptr_t)i);
if (retval != 0) {
printf ("Hrm: error creating monitor thread %d\n", i);
exit (-1);