summaryrefslogtreecommitdiff
path: root/libjava/posix-threads.cc
diff options
context:
space:
mode:
authorljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-24 21:57:08 +0000
committerljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-24 21:57:08 +0000
commit429f8d685feb0b3808013e88fdcb779006ced627 (patch)
tree62260745ef05b530d9696fd569b6bc264845b3bb /libjava/posix-threads.cc
parente647551769827d68434acab38033cdc1fbeda627 (diff)
downloadgcc-429f8d685feb0b3808013e88fdcb779006ced627.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46476 138bc75d-0d04-0410-961f-82ee72b054a4
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 10cfcbae9b3..aa73dbf55f3 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