summaryrefslogtreecommitdiff
path: root/usr/src/lib/libresolv2/include/conf/sunoptions.h
blob: b75ff9d878b0f0c45c5bdc06f56e8c278e799e63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
 * Use is subject to license terms.
 */

#ifndef	_SUNOPTIONS_H
#define	_SUNOPTIONS_H

#define	USELOOPBACK	/* Resolver library defaults to 127.0.0.1 */

/* Additions for Solaris 2 */

#define	SUNW_INITCHKIF		/* Check if any non-loopback interface is up */
#define	SUNW_CONFCHECK		/* Abort quickly if no /etc/resolv.conf or */
				/* local named */
#define	SUNW_HOSTS_FALLBACK	/* Configurable /etc/hosts fallback */
#define	SUNW_HNOK_UNDERSCORE	/* Allow underscore in hostnames (libresolv) */
#define	SUNW_MT_RESOLVER	/* MT hot extensions (libresolv) */
#define	SUNW_SETHERRNO		/* ISC does not set h_errno in gethostbyname */
#define	SUNW_OVERRIDE_RETRY	/* Allow NS switch to override res->retry */
#define	SUNW_LIBMD5	/* Use md5(3EXT) instead of internal implementation */

/* If compiling an MT warm libresolv, we also need reentrancy */
#if	defined(SUNW_MT_RESOLVER) && !defined(_REENTRANT)
#define	_REENTRANT
#endif

/* End additions for Solaris 2 */

#endif /* _SUNOPTIONS_H */