diff options
author | Paul Smith <psmith@gnu.org> | 2002-09-10 07:27:28 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2002-09-10 07:27:28 +0000 |
commit | 7ea029a07c02b9401cb3d88566eac41959b84c11 (patch) | |
tree | 0a26e865bee26f79c718258415b5389023076942 /make.h | |
parent | 9b41488ad15e4ffc63b8094379c17f567b094c1b (diff) | |
download | make-7ea029a07c02b9401cb3d88566eac41959b84c11.tar.gz |
Add support for broken SA_RESTART on PTX.
Fix bug #103: allow ifdef, export, and unexport to expand their arguments.
Diffstat (limited to 'make.h')
-rw-r--r-- | make.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -537,3 +537,17 @@ extern int handling_fatal_signal; #ifdef HAVE_DMALLOC_H #include <dmalloc.h> #endif + + +/* If we have broken SA_RESTART support, then wrap stat() and readdir() with + versions that handle EINTR. Note that there are still plenty of system + calls that can fail with EINTR but this, reportedly, gets the vast + majority of failure cases. If you still experience failures you'll need + to either get a system where SA_RESTART works, or you need to avoid -j. */ + +#ifdef HAVE_BROKEN_RESTART + +#define stat(_f,_b) atomic_stat ((_f), (_b)) +#define readdir(_d) atomic_readdir (_d) + +#endif |