aboutsummaryrefslogtreecommitdiff
path: root/gold/output.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2011-04-22 23:20:28 +0000
committerIan Lance Taylor <ian@airs.com>2011-04-22 23:20:28 +0000
commitd0a9ace301659a82d936cfba740564f6a9ec288a (patch)
treeb47543709a0e13dfcadd65e00d27a60130bfca4d /gold/output.cc
parent94a3fc8b837eb39007fa4e82120f60ec9429317d (diff)
downloadgdb-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.cc5
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
{