Under Linux, don't use -ansi in thread safe grades, because if

Estimated hours taken: 0.2


scripts/mgnuc.in:
	Under Linux, don't use -ansi in thread safe grades, because if
	you do, you'll get parse errors in pthread.h where it uses
	sigset_t.
This commit is contained in:
Thomas Conway
1999-08-27 04:46:55 +00:00
parent c4f17bfda5
commit d659c2b6c3

View File

@@ -275,12 +275,19 @@ case $thread_safe in
true)
case $FULLARCH in
*solaris*) THREAD_OPTS="-DMR_THREAD_SAFE -DSOLARIS_THREADS \
-D_SOLARIS_PTHREADS -D_REENTRANT";;
-D_SOLARIS_PTHREADS -D_REENTRANT"
;;
*linux*) THREAD_OPTS="-DMR_THREAD_SAFE -DLINUX_THREADS \
-D_THREAD_SAFE -D_REENTRANT";;
-D_THREAD_SAFE -D_REENTRANT"
# Don't use -ansi under Linux or we get
# parse errors at sigset_t in the pthreads
# headers.
ANSI_OPTS=""
;;
*) THREAD_OPTS="" ;;
*) THREAD_OPTS=""
;;
esac ;;
false) THREAD_OPTS="" ;;
esac