summaryrefslogtreecommitdiff
path: root/make.h
diff options
context:
space:
mode:
Diffstat (limited to 'make.h')
-rw-r--r--make.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/make.h b/make.h
index 2e354c9..6648ea0 100644
--- a/make.h
+++ b/make.h
@@ -547,7 +547,16 @@ extern int handling_fatal_signal;
#ifdef HAVE_BROKEN_RESTART
+/* Here we make an assumption that a system with a broken SA_RESTART has
+ dirent.h. Right now the only system I know of in this category is PTX, and
+ it does have dirent.h.
+*/
+#include <dirent.h>
+
#define stat(_f,_b) atomic_stat ((_f), (_b))
#define readdir(_d) atomic_readdir (_d)
+extern int atomic_stat PARAMS ((const char *file, struct stat *buf));
+extern struct dirent *atomic_readdir PARAMS ((DIR *dir));
+
#endif