File libedit-visibility.patch of Package libedit

Index: libedit-20110802-3.0/src/sys.h
===================================================================
--- libedit-20110802-3.0.orig/src/sys.h
+++ libedit-20110802-3.0/src/sys.h
@@ -63,7 +63,7 @@
 #endif
  
 #ifndef public
-# define public		/* Externally visible functions/variables */
+# define public		__attribute__ ((visibility ("default"))) /* Externally visible functions/variables */
 #endif
 
 #ifndef private
@@ -71,7 +71,7 @@
 #endif
 
 #ifndef protected
-# define protected	/* Redefined from elsewhere to "static" */
+# define protected	 __attribute__ ((visibility ("hidden"))) /* Redefined from elsewhere to "static" */
 			/* When we want to hide everything	*/
 #endif
 
openSUSE Build Service is sponsored by