1 /*
2  * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 #ifndef	_SUNOPTIONS_H
7 #define	_SUNOPTIONS_H
8 
9 #define	USELOOPBACK	/* Resolver library defaults to 127.0.0.1 */
10 
11 /* Additions for Solaris 2 */
12 
13 #define	SUNW_INITCHKIF		/* Check if any non-loopback interface is up */
14 #define	SUNW_CONFCHECK		/* Abort quickly if no /etc/resolv.conf or */
15 				/* local named */
16 #define	SUNW_HOSTS_FALLBACK	/* Configurable /etc/hosts fallback */
17 #define	SUNW_HNOK_UNDERSCORE	/* Allow underscore in hostnames (libresolv) */
18 #define	SUNW_MT_RESOLVER	/* MT hot extensions (libresolv) */
19 #define	SUNW_SETHERRNO		/* ISC does not set h_errno in gethostbyname */
20 #define	SUNW_OVERRIDE_RETRY	/* Allow NS switch to override res->retry */
21 #define	SUNW_LIBMD5	/* Use md5(3EXT) instead of internal implementation */
22 
23 /* If compiling an MT warm libresolv, we also need reentrancy */
24 #if	defined(SUNW_MT_RESOLVER) && !defined(_REENTRANT)
25 #define	_REENTRANT
26 #endif
27 
28 /* End additions for Solaris 2 */
29 
30 #endif /* _SUNOPTIONS_H */
31