aboutsummaryrefslogtreecommitdiff
path: root/gdb/common/filestuff.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/common/filestuff.h')
-rw-r--r--gdb/common/filestuff.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/common/filestuff.h b/gdb/common/filestuff.h
index 747bff2..0db33f0 100644
--- a/gdb/common/filestuff.h
+++ b/gdb/common/filestuff.h
@@ -33,7 +33,8 @@ extern void close_most_fds (void);
/* Like 'open', but ensures that the returned file descriptor has the
close-on-exec flag set. */
-extern int gdb_open_cloexec (const char *filename, int flags, mode_t mode);
+extern int gdb_open_cloexec (const char *filename, int flags,
+ /* mode_t */ unsigned long mode);
/* Like 'fopen', but ensures that the returned file descriptor has the
close-on-exec flag set. */