aboutsummaryrefslogtreecommitdiff
path: root/libfshelp/rlock.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-08-01 21:28:47 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-08-01 21:33:12 +0200
commit6b52d3e3a4e625d64278a58f193c6353c67f7c95 (patch)
tree49ebeaaa2958a5b37b52cbc8d7d1936444a3f3b2 /libfshelp/rlock.h
parentca3d36201329f0e21b995d831ce9f6f03b6b985e (diff)
downloadhurd-6b52d3e3a4e625d64278a58f193c6353c67f7c95.tar.gz
hurd-6b52d3e3a4e625d64278a58f193c6353c67f7c95.tar.bz2
hurd-6b52d3e3a4e625d64278a58f193c6353c67f7c95.zip
libfshelp: Fix extern inline usage
C99 extern inline semantic is different from GNU semantic, so we cannot blindly write "extern inline". * libfshelp/rlock.h (FSHELP_EXTERN_INLINE): Define to __extern_inline if not already. (rlock_list_init): Mark FSHELP_EXTERN_INLINE instead of extern inline. * libfshelp/fshelp.h (FSHELP_EXTERN_INLINE): Define to __extern_inline instead of extern inline. * libfshelp/extern-inline.c: Include "rlock.h"
Diffstat (limited to 'libfshelp/rlock.h')
-rw-r--r--libfshelp/rlock.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libfshelp/rlock.h b/libfshelp/rlock.h
index 5c620279..e1b7b257 100644
--- a/libfshelp/rlock.h
+++ b/libfshelp/rlock.h
@@ -21,6 +21,10 @@
#ifndef FSHELP_RLOCK_H
#define FSHELP_RLOCK_H
+#ifndef FSHELP_EXTERN_INLINE
+#define FSHELP_EXTERN_INLINE __extern_inline
+#endif
+
#include <pthread.h>
#include <string.h>
@@ -45,7 +49,7 @@ struct rlock_list
void *po_id;
};
-extern inline error_t
+FSHELP_EXTERN_INLINE error_t
rlock_list_init (struct rlock_peropen *po, struct rlock_list *l)
{
memset (l, 0, sizeof (struct rlock_list));