summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_open.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/thread/thr_open.c')
-rw-r--r--lib/libpthread/thread/thr_open.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_open.c b/lib/libpthread/thread/thr_open.c
index 4e9993e..4bc2f1a 100644
--- a/lib/libpthread/thread/thr_open.c
+++ b/lib/libpthread/thread/thr_open.c
@@ -42,7 +42,7 @@
#include "pthread_private.h"
int
-open(const char *path, int flags,...)
+_libc_open(const char *path, int flags,...)
{
int fd;
int mode = 0;
@@ -74,4 +74,6 @@ open(const char *path, int flags,...)
/* Return the file descriptor or -1 on error: */
return (fd);
}
+
+__weak_reference(_libc_open, open);
#endif
OpenPOWER on IntegriCloud