SHA256
3
0
forked from pool/libedit
libedit/libedit-visibility.patch
Ismail Dönmez 2b87906d0d Accepting request 109055 from home:elvigia:branches:devel:libraries:c_c++
-  open all FDs with O_CLOEXEC in the library code.
-  use gcc visibility by just reusing upstream macros "public"
   and "protected"

OBS-URL: https://build.opensuse.org/request/show/109055
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libedit?expand=0&rev=47
2012-03-13 11:11:23 +00:00

23 lines
686 B
Diff

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