From 2588b26e0e0374bccd928e2d102e81a9e334fc0b Mon Sep 17 00:00:00 2001 From: Robert Mason Date: Sat, 3 Nov 2012 15:53:28 +0000 Subject: final patch for enabling VxWorks From-SVN: r193124 --- gcc/gcov-io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/gcov-io.c') diff --git a/gcc/gcov-io.c b/gcc/gcov-io.c index d64fb42..f562654 100644 --- a/gcc/gcov-io.c +++ b/gcc/gcov-io.c @@ -92,7 +92,8 @@ gcov_open (const char *name, int mode) { /* Read-only mode - acquire a read-lock. */ s_flock.l_type = F_RDLCK; - fd = open (name, O_RDONLY); + /* pass mode (ignored) for compatibility */ + fd = open (name, O_RDONLY, S_IRUSR | S_IWUSR); } else { -- cgit v1.1