forked from pool/libedit
2b87906d0d
- 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
23 lines
686 B
Diff
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
|
|
|