adns-ocloexec
[platform/upstream/adns.git] / packaging / adns-visibility.patch
1 --- configure.in.orig
2 +++ configure.in
3 @@ -59,7 +59,9 @@ AC_ARG_ENABLE(dynamic,
4                 AC_MSG_RESULT([yes, by default])
5  ])
6  
7 -AC_PROG_CC
8 +AC_PROG_CC_STDC
9 +AC_USE_SYSTEM_EXTENSIONS
10 +AC_SYS_LARGEFILE
11  AC_PROG_CPP
12  AC_PROG_RANLIB
13  AC_PROG_INSTALL
14 --- src/internal.h.orig
15 +++ src/internal.h
16 @@ -49,6 +49,7 @@ typedef unsigned char byte;
17  # include "hredirect.h"
18  #endif
19  
20 +#pragma GCC visibility push(hidden)
21  /* Configuration and constants */
22  
23  #define MAXSERVERS 5
24 @@ -803,4 +804,5 @@ static inline int errno_resources(int e)
25                        (tv)|=GETIL_B(cb),               \
26                        (tv) )
27  
28 +#pragma GCC visibility pop
29  #endif