Package: libupnp4 Version: 1.8.0~cvs20080628-1 Severity: important Tags: patch Usertags: kfreebsd
Petr Salinger's bug #491173 for building on GNU/kFreeBSD needs applying to libupnp4 also. Patch attached and forwarded to upstream. -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (600, 'stable'), (480, 'proposed-updates'), (80, 'testing'), (3, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-6-k7 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) -- no debconf information
Index: libupnp-1.6.6/threadutil/src/ThreadPool.c =================================================================== --- libupnp-1.6.6.orig/threadutil/src/ThreadPool.c 2008-07-21 20:55:52.000000000 +0100 +++ libupnp-1.6.6/threadutil/src/ThreadPool.c 2008-07-21 20:56:38.000000000 +0100 @@ -391,7 +391,7 @@ srand( ( unsigned int )t.tv_usec + (unsigned int)ithread_get_current_thread_id().p ); #elif defined(__FreeBSD__) || defined(__OSX__) || defined(__APPLE__) srand( ( unsigned int )t.tv_usec + (unsigned int)ithread_get_current_thread_id() ); -#elif defined(__linux__) || defined(__sun) || defined(__CYGWIN__) +#elif defined(__linux__) || defined(__sun) || defined(__CYGWIN__) || defined(__GLIBC__) srand( ( unsigned int )t.tv_usec + ithread_get_current_thread_id() ); #else {