summaryrefslogtreecommitdiff
path: root/libcpp/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcpp/system.h')
-rw-r--r--libcpp/system.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcpp/system.h b/libcpp/system.h
index 560fa18406b..98ac118e351 100644
--- a/libcpp/system.h
+++ b/libcpp/system.h
@@ -38,6 +38,11 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#define NULL 0
#endif
+/* Use the unlocked open routines from libiberty. */
+#define fopen(PATH,MODE) fopen_unlocked(PATH,MODE)
+#define fdopen(FILDES,MODE) fdopen_unlocked(FILDES,MODE)
+#define freopen(PATH,MODE,STREAM) freopen_unlocked(PATH,MODE,STREAM)
+
/* The compiler is not a multi-threaded application and therefore we
do not have to use the locking functions. In fact, using the locking
functions can cause the compiler to be significantly slower under