From 4d10ceb2b2f199a42fc214128aebe9ef587e0a2b Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 20 Mar 2016 22:12:06 +0100 Subject: [PATCH] hurd: Allow inlining IO locks * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1. --- ChangeLog | 4 ++++ sysdeps/mach/hurd/libc-lock.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index db408c7..4b8890e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2016-03-20 Samuel Thibault : + * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1. + +2016-03-20 Samuel Thibault : + * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open and __fcntl. * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to diff --git a/sysdeps/mach/hurd/libc-lock.h b/sysdeps/mach/hurd/libc-lock.h index f6cbe50..dfcbee1 100644 --- a/sysdeps/mach/hurd/libc-lock.h +++ b/sysdeps/mach/hurd/libc-lock.h @@ -23,6 +23,9 @@ #include #include +/* The locking here is very inexpensive, even for inlining. */ +#define _IO_lock_inexpensive 1 + typedef struct mutex __libc_lock_t; typedef struct { -- 2.7.4