From 8180a54f41f64529768258bb0ab6a8f59b3d2692 Mon Sep 17 00:00:00 2001 From: Marcelo Roberto Jimenez Date: Thu, 24 Jul 2008 11:29:47 +0000 Subject: [PATCH] SF Bug Tracker [ 2026431 ] pupnp does not build on GNU/KfreeBSD. Submitted By: Nick Leverton - leveret Gnu/KFreeBSD is one of the Debian architectures, it includes a FreeBSD kernel with GNU userspace (glibc etc). The Gnu/KfreeBSD developers provided the attached patch to test the appropriate #define and allow pupnp to build in their environment, and asked me to forward it to you. Since the test is a simple check for defined(__GLIBC__), this would presumably also help with other ports of GNU libc to non-Linux kernels. git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@457 119443c7-1b9e-41f8-b6fc-b9c35fce742c --- ChangeLog | 19 +++++++++++++++---- THANKS | 1 + threadutil/src/ThreadPool.c | 2 +- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index d805c81..8ea8a45 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,10 +6,6 @@ Version 1.8.0 * Andre Sodermans (wienerschnitzel) patch for building libupnp under windows systems with VC9. This one fixes a missing include. -2008-06-30 Marcelo Jimenez - * Added an m4 macro to deal with finding libupnp in the users' - configure script. - 2008-06-27 Marcelo Jimenez * Nicholas Kraft's patch to fix some IPv6 copy/paste issues. He reported to be getting infinite loops with the svn code. @@ -174,6 +170,21 @@ Version 1.8.0 Version 1.6.7 ******************************************************************************* +2008-07-24 Marcelo Jimenez + * SF Bug Tracker [ 2026431 ] pupnp does not build on GNU/KfreeBSD. + Submitted By: Nick Leverton - leveret + Gnu/KFreeBSD is one of the Debian architectures, it includes a FreeBSD + kernel with GNU userspace (glibc etc). The Gnu/KfreeBSD developers + provided the attached patch to test the appropriate #define and allow pupnp + to build in their environment, and asked me to forward it to you. + + Since the test is a simple check for defined(__GLIBC__), this would + presumably also help with other ports of GNU libc to non-Linux kernels. + +2008-06-30 Marcelo Jimenez + * Added an m4 macro to deal with finding libupnp in the users' + configure script. + 2008-04-28 Marcelo Jimenez * Fix in function SetSeed() in threadutil/src/ThreadPool.c for CYGWIN compilation. Thanks to Gary Chan. diff --git a/THANKS b/THANKS index e4e9f4c..6aac1e8 100644 --- a/THANKS +++ b/THANKS @@ -38,6 +38,7 @@ exempt of errors. - Markus Strobl - Nektarios K. Papadopoulos (npapadop) - Nicholas Kraft +- Nick Leverton (leveret) - Oskar Liljeblad - Michael (oxygenic) - Paul Vixie diff --git a/threadutil/src/ThreadPool.c b/threadutil/src/ThreadPool.c index cc9ae53..d925da7 100644 --- a/threadutil/src/ThreadPool.c +++ b/threadutil/src/ThreadPool.c @@ -401,7 +401,7 @@ static void SetSeed() 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 {