aboutsummaryrefslogtreecommitdiff
path: root/libjava/posix-threads.cc
diff options
context:
space:
mode:
authorLoren J. Rittle <ljrittle@acm.org>2001-10-24 21:57:08 +0000
committerLoren J. Rittle <ljrittle@gcc.gnu.org>2001-10-24 21:57:08 +0000
commitda97915227f800fd13ca92d3bbe78a7e5c31406a (patch)
tree62260745ef05b530d9696fd569b6bc264845b3bb /libjava/posix-threads.cc
parentc163d21d79193fb3463998fe81395b0a9f81da55 (diff)
downloadgcc-da97915227f800fd13ca92d3bbe78a7e5c31406a.zip
gcc-da97915227f800fd13ca92d3bbe78a7e5c31406a.tar.gz
gcc-da97915227f800fd13ca92d3bbe78a7e5c31406a.tar.bz2
configure.in (case $THREADS): Add *-*-freebsd* configuration.
* configure.in (case $THREADS): Add *-*-freebsd* configuration. (HAVE_GETHOSTBYADDR_R): Create a valid, non-optimal configuration when gethostbyaddr_r exists yet no prototype exists in netdb.h. * configure: Rebuilt. * posix-threads.cc (INTR): Reuse path for LINUX_THREADS with FREEBSD_THREADS. However, comment different reason. From-SVN: r46476
Diffstat (limited to 'libjava/posix-threads.cc')
-rw-r--r--libjava/posix-threads.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/posix-threads.cc b/libjava/posix-threads.cc
index 10cfcba..aa73dbf 100644
--- a/libjava/posix-threads.cc
+++ b/libjava/posix-threads.cc
@@ -55,8 +55,9 @@ static pthread_cond_t daemon_cond;
static int non_daemon_count;
// The signal to use when interrupting a thread.
-#ifdef LINUX_THREADS
+#if defined(LINUX_THREADS) || defined(FREEBSD_THREADS)
// LinuxThreads (prior to glibc 2.1) usurps both SIGUSR1 and SIGUSR2.
+ // GC on FreeBSD uses both SIGUSR1 and SIGUSR2.
# define INTR SIGHUP
#else /* LINUX_THREADS */
# define INTR SIGUSR2