diff options
author | Ian Lance Taylor <ian@airs.com> | 2011-04-22 23:20:28 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2011-04-22 23:20:28 +0000 |
commit | d0a9ace301659a82d936cfba740564f6a9ec288a (patch) | |
tree | b47543709a0e13dfcadd65e00d27a60130bfca4d /gold/output.cc | |
parent | 94a3fc8b837eb39007fa4e82120f60ec9429317d (diff) | |
download | gdb-d0a9ace301659a82d936cfba740564f6a9ec288a.zip gdb-d0a9ace301659a82d936cfba740564f6a9ec288a.tar.gz gdb-d0a9ace301659a82d936cfba740564f6a9ec288a.tar.bz2 |
* descriptors.cc (set_close_on_exec): New function.
(Descriptors::open): Use set_close_on_exec.
* output.cc (S_ISLNK): Define if not defined.
Diffstat (limited to 'gold/output.cc')
-rw-r--r-- | gold/output.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/output.cc b/gold/output.cc index 26f843c..70379bb 100644 --- a/gold/output.cc +++ b/gold/output.cc @@ -121,6 +121,11 @@ posix_fallocate(int o, off_t offset, off_t len) } #endif // !defined(HAVE_POSIX_FALLOCATE) +// Mingw does not have S_ISLNK. +#ifndef S_ISLNK +# define S_ISLNK(mode) 0 +#endif + namespace gold { |