diff mbox series

[1/2] symbols: Add defines for libanl's libanl_hidden_{def|proto}

Message ID 20201201094437.23804-1-lukma@denx.de
State New
Headers show
Series [1/2] symbols: Add defines for libanl's libanl_hidden_{def|proto} | expand

Commit Message

Lukasz Majewski Dec. 1, 2020, 9:44 a.m. UTC
The __gai_suspend_time64, which supports 64 bit time on ports with
__WORDSIZE == 32 && __TIMESIZE != 64, shall be exported from libanl
(the same library from which original gai_suspend is exported).

Up till now there were no defines for this library. This commit adds
them.
---
 include/libc-symbols.h | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Florian Weimer Dec. 1, 2020, 9:58 a.m. UTC | #1
* Lukasz Majewski:

> The __gai_suspend_time64, which supports 64 bit time on ports with
> __WORDSIZE == 32 && __TIMESIZE != 64, shall be exported from libanl
> (the same library from which original gai_suspend is exported).
>
> Up till now there were no defines for this library. This commit adds
> them.
> ---
>  include/libc-symbols.h | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/include/libc-symbols.h b/include/libc-symbols.h
> index b8103b98bb..154a73b5e5 100644
> --- a/include/libc-symbols.h
> +++ b/include/libc-symbols.h
> @@ -879,6 +879,14 @@ for linking")
>  # define libutil_hidden_data_ver(local, name)
>  #endif
>  
> +#if IS_IN (libanl)
> +# define libanl_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
> +# define libanl_hidden_def(name) hidden_def (name)
> +#else
> +# define libanl_hidden_proto(name, attrs...)
> +# define libanl_hidden_def(name)
> +#endif
> +
>  /* Get some dirty hacks.  */
>  #include <symbol-hacks.h>

This looks okay to me.

Thanks,
Florian
diff mbox series

Patch

diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index b8103b98bb..154a73b5e5 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -879,6 +879,14 @@  for linking")
 # define libutil_hidden_data_ver(local, name)
 #endif
 
+#if IS_IN (libanl)
+# define libanl_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
+# define libanl_hidden_def(name) hidden_def (name)
+#else
+# define libanl_hidden_proto(name, attrs...)
+# define libanl_hidden_def(name)
+#endif
+
 /* Get some dirty hacks.  */
 #include <symbol-hacks.h>