瀏覽代碼

Disable threads on openbsd too.

svn:r4268
Nick Mathewson 20 年之前
父節點
當前提交
7cc070a077
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      configure.in

+ 3 - 1
configure.in

@@ -24,9 +24,11 @@ AC_ARG_ENABLE(threads,
 
 
 if test x$enable_threads = x; then
 if test x$enable_threads = x; then
    case $host in
    case $host in
-    *-*-netbsd*)
+    *-*-netbsd* | *-*-openbsd* )
      # Don't try multithreading on netbsd -- there is no threadsafe DNS
      # Don't try multithreading on netbsd -- there is no threadsafe DNS
      # lookup function there.
      # lookup function there.
+     AC_MSG_NOTICE([You are running OpenBSD or NetBSD; I am assuming that
+getaddrinfo is not threadsafe here, so I will disable threads.])
      enable_threads="no";;
      enable_threads="no";;
     *)
     *)
      enable_threads="yes";;
      enable_threads="yes";;