This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug go/48019] Need to handle EINTR in libgo testsuite
- From: "ro at CeBiTec dot Uni-Bielefeld.DE" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 9 Mar 2011 18:30:25 +0000
- Subject: [Bug go/48019] Need to handle EINTR in libgo testsuite
- Auto-submitted: auto-generated
- References: <bug-48019-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48019
--- Comment #5 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-03-09 18:30:12 UTC ---
> --- Comment #4 from Ian Lance Taylor <ian at airs dot com> 2011-03-09 18:21:44 UTC ---
> Come to think of it, the code sets SA_RESTART when it calls sigaction. Is
> SA_RESTART defined on Solaris? Do I have to #define any special macros to get
> it to be defined?
It is defined, given the following conditions:
#if defined(__EXTENSIONS__) || defined(_KERNEL) || \
(!defined(_STRICT_STDC) && !defined(_POSIX_C_SOURCE)) || \
defined(_XPG4_2)
I.e. it is missing in a strict ANSI C/non-XPG 4.2+ environment.
Rainer