View | Details | Raw Unified | Return to bug 1299
Collapse All | Expand All

(-)configure.ac (+19 lines)
Lines 3154-3159 int main() Link Here
3154
			[#include <arpa/nameser.h>])
3154
			[#include <arpa/nameser.h>])
3155
	])
3155
	])
3156
3156
3157
AC_MSG_CHECKING(if struct __res_state _res is an extern)
3158
AC_LINK_IFELSE([
3159
#include <stdio.h>
3160
#if HAVE_SYS_TYPES_H
3161
# include <sys/types.h>
3162
#endif
3163
#include <netinet/in.h>
3164
#include <arpa/nameser.h>
3165
#include <resolv.h>
3166
extern struct __res_state _res;
3167
int main() { return 0; }
3168
		],
3169
		[AC_MSG_RESULT(yes)
3170
		 AC_DEFINE(HAVE__RES_EXTERN, 1,
3171
		    [Define if you have struct __res_state _res as an extern])
3172
		],
3173
		[ AC_MSG_RESULT(no) ]
3174
)
3175
3157
# Check whether user wants SELinux support
3176
# Check whether user wants SELinux support
3158
SELINUX_MSG="no"
3177
SELINUX_MSG="no"
3159
LIBSELINUX=""
3178
LIBSELINUX=""
(-)openbsd-compat/getrrsetbyname.c (-6 / +2 lines)
Lines 67-79 extern int h_errno; Link Here
67
#endif
67
#endif
68
#define _THREAD_PRIVATE(a,b,c) (c)
68
#define _THREAD_PRIVATE(a,b,c) (c)
69
69
70
/* to avoid conflicts where a platform already has _res */
70
#ifndef HAVE__RES_EXTERN
71
#ifdef _res
72
# undef _res
73
#endif
74
#define _res	_compat_res
75
76
struct __res_state _res;
71
struct __res_state _res;
72
#endif
77
73
78
/* Necessary functions and macros */
74
/* Necessary functions and macros */
79
75

Return to bug 1299