aboutsummaryrefslogtreecommitdiff
path: root/gdb/common/filestuff.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-04-23 15:49:25 +0000
committerTom Tromey <tromey@redhat.com>2013-04-23 15:49:25 +0000
commit5d71132c29839d6c5593eaed39dfe8e8be5673b1 (patch)
tree190a6f5a12f681c57495741bb7b47cddb3334400 /gdb/common/filestuff.h
parent29f045bb482a412d4f410f368c333df2dc8c771e (diff)
downloadgdb-5d71132c29839d6c5593eaed39dfe8e8be5673b1.zip
gdb-5d71132c29839d6c5593eaed39dfe8e8be5673b1.tar.gz
gdb-5d71132c29839d6c5593eaed39dfe8e8be5673b1.tar.bz2
* common/filestuff.c: Check USE_WIN32API before including
sys/socket.h. (HAVE_F_GETFD): New define. (mark_cloexec): Check HAVE_F_GETFD. (gdb_open_cloexec): Change 'mode' to unsigned long. (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR. (gdb_pipe_cloexec): Check HAVE_PIPE. * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned long.
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. */