summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_creat.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/thread/thr_creat.c')
-rw-r--r--lib/libpthread/thread/thr_creat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_creat.c b/lib/libpthread/thread/thr_creat.c
index 1b51fec..56100dd 100644
--- a/lib/libpthread/thread/thr_creat.c
+++ b/lib/libpthread/thread/thr_creat.c
@@ -30,12 +30,13 @@
*/
#include <fcntl.h>
-#ifdef _THREAD_SAFE
#include <pthread.h>
#include "pthread_private.h"
+#pragma weak creat=___creat
+
int
-creat(const char *path, mode_t mode)
+___creat(const char *path, mode_t mode)
{
int ret;
@@ -45,4 +46,3 @@ creat(const char *path, mode_t mode)
return ret;
}
-#endif
OpenPOWER on IntegriCloud