* common/filestuff.c: Check USE_WIN32API before including
authorTom Tromey <tromey@redhat.com>
Tue, 23 Apr 2013 15:49:25 +0000 (15:49 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 23 Apr 2013 15:49:25 +0000 (15:49 +0000)
commit5d71132c29839d6c5593eaed39dfe8e8be5673b1
tree190a6f5a12f681c57495741bb7b47cddb3334400
parent29f045bb482a412d4f410f368c333df2dc8c771e
* 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.
gdb/ChangeLog
gdb/common/filestuff.c
gdb/common/filestuff.h