diff options
author | vanilla <vanilla@FreeBSD.org> | 2007-08-09 17:23:54 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2007-08-09 17:23:54 +0800 |
commit | de33b894f3e3991785e11eace4bad95994af1540 (patch) | |
tree | d33aa3a6ddf1a6dd2a3ac426c0c36cf381192699 /net/spserver | |
parent | 13be58667d1165bb9115d38b7b125d0e00405064 (diff) | |
download | freebsd-ports-gnome-de33b894f3e3991785e11eace4bad95994af1540.tar.gz freebsd-ports-gnome-de33b894f3e3991785e11eace4bad95994af1540.tar.zst freebsd-ports-gnome-de33b894f3e3991785e11eace4bad95994af1540.zip |
Fix building on current/amd64.
Diffstat (limited to 'net/spserver')
-rw-r--r-- | net/spserver/files/patch-testthreadpool.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/spserver/files/patch-testthreadpool.cpp b/net/spserver/files/patch-testthreadpool.cpp new file mode 100644 index 000000000000..e00ab174ad2f --- /dev/null +++ b/net/spserver/files/patch-testthreadpool.cpp @@ -0,0 +1,15 @@ +--- testthreadpool.cpp.orig 2007-08-09 17:14:03.000000000 +0800 ++++ testthreadpool.cpp 2007-08-09 17:15:20.000000000 +0800 +@@ -16,10 +16,10 @@ + + void threadFunc( void *arg ) + { +- int seconds = (int) arg; ++ int seconds = atoi ((char *) arg); + + fprintf( stdout, " in threadFunc %d\n", seconds ); +- fprintf( stdout, " thread#%ld\n", pthread_self() ); ++ fprintf( stdout, " thread#%ld\n", (long int)pthread_self() ); + sleep( seconds ); + fprintf( stdout, " done threadFunc %d\n", seconds); + } |