summaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog6
-rw-r--r--libgfortran/io/unit.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 210a37274f4..8ed3624e01d 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,9 @@
+2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
+
+ PR libfortran/35063
+ * io/unit.c (destroy_unit_mutex): Call __gthread_mutex_destroy
+ instead of macro kludge.
+
2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
PR fortran/29549
diff --git a/libgfortran/io/unit.c b/libgfortran/io/unit.c
index 2ec776f0d68..a54061d2f84 100644
--- a/libgfortran/io/unit.c
+++ b/libgfortran/io/unit.c
@@ -209,13 +209,7 @@ insert_unit (int n)
static void
destroy_unit_mutex (gfc_unit * u)
{
-#ifdef __GTHREAD_MUTEX_DESTROY_FUNCTION
- __GTHREAD_MUTEX_DESTROY_FUNCTION (&u->lock);
-#else
-#ifdef __CYGWIN__
- pthread_mutex_destroy (&u->lock);
-#endif
-#endif
+ __gthread_mutex_destroy (&u->lock);
free_mem (u);
}