adns/adns-visibility.patch
Cristian Rodríguez 58fc7cd92f Accepting request 92977 from home:elvigia:branches:devel:libraries:c_c++
- Use O_CLOEXEC in library code.
- Change the visibility patch to not use the error prone 
  version-script but rather GCC visibility

OBS-URL: https://build.opensuse.org/request/show/92977
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/adns?expand=0&rev=10
2011-11-22 02:36:24 +00:00

30 lines
609 B
Diff

--- configure.in.orig
+++ configure.in
@@ -59,7 +59,9 @@ AC_ARG_ENABLE(dynamic,
AC_MSG_RESULT([yes, by default])
])
-AC_PROG_CC
+AC_PROG_CC_STDC
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
AC_PROG_CPP
AC_PROG_RANLIB
AC_PROG_INSTALL
--- src/internal.h.orig
+++ src/internal.h
@@ -49,6 +49,7 @@ typedef unsigned char byte;
# include "hredirect.h"
#endif
+#pragma GCC visibility push(hidden)
/* Configuration and constants */
#define MAXSERVERS 5
@@ -803,4 +804,5 @@ static inline int errno_resources(int e)
(tv)|=GETIL_B(cb), \
(tv) )
+#pragma GCC visibility pop
#endif