mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Fix building on current/amd64.
This commit is contained in:
parent
19e642669c
commit
b7d0d9c75a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197374
1 changed files with 15 additions and 0 deletions
15
net/spserver/files/patch-testthreadpool.cpp
Normal file
15
net/spserver/files/patch-testthreadpool.cpp
Normal file
|
@ -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);
|
||||
}
|
Loading…
Add table
Reference in a new issue