From e92fe32dae6f34ceea892a44c60f43cf23b1188f Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Fri, 31 Oct 2008 04:07:18 +0000 Subject: [PATCH] Add hidden attribute to be used for versioned symbols. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2815 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- lib/vserver-internal.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/vserver-internal.h b/lib/vserver-internal.h index 334357e..30ff3fc 100644 --- a/lib/vserver-internal.h +++ b/lib/vserver-internal.h @@ -273,6 +273,12 @@ inline static ALWAYSINLINE void vc_noop0() {} #define EXT2_IOC_GETCONTEXT _IOR('x', 1, long) #define EXT2_IOC_SETCONTEXT _IOW('x', 2, long) +#if defined(__GNUC__) +# define VC_ATTR_HIDDEN __attribute__ ((hidden)) +#else +# define VC_ATTR_HIDDEN +#endif + #ifndef HAVE_VSERVER #ifdef ENSC_SYSCALL_TRADITIONAL inline static UNUSED ALWAYSINLINE -- 1.8.1.5