]> granicus.if.org Git - postgresql/commitdiff
Update Solaris thread flags, per Jim Seymour
authorBruce Momjian <bruce@momjian.us>
Sun, 14 Mar 2004 23:51:57 +0000 (23:51 +0000)
committerBruce Momjian <bruce@momjian.us>
Sun, 14 Mar 2004 23:51:57 +0000 (23:51 +0000)
src/template/solaris

index 489bece9489b45559b911471fd3d5a90fa265fdb..fd3240214467d6c55f74ba81131b88e96bc3ff01 100644 (file)
@@ -12,8 +12,8 @@ esac
 THREAD_SUPPORT=yes
 NEED_REENTRANT_FUNCS=yes       # 5.6 2003-09-13
 if test "$GCC" = yes 
-then   THREAD_LIBS="-pthread"
-else   THREAD_CPPFLAGS="-mt"
+then   THREAD_CPPFLAGS="-D_POSIX_PTHREAD_SEMANTICS"
+       THREAD_LIBS="-pthread"
+else   THREAD_CPPFLAGS="-mt -D_POSIX_PTHREAD_SEMANTICS"
        THREAD_LIBS="-lpthread"
 fi
-