10Sstevel@tonic-gate /* 2*11038SRao.Shoaib@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 30Sstevel@tonic-gate * Use is subject to license terms. 40Sstevel@tonic-gate */ 50Sstevel@tonic-gate 60Sstevel@tonic-gate #ifndef _SUNOPTIONS_H 70Sstevel@tonic-gate #define _SUNOPTIONS_H 80Sstevel@tonic-gate 9*11038SRao.Shoaib@Sun.COM #define USELOOPBACK /* Resolver library defaults to 127.0.0.1 */ 100Sstevel@tonic-gate 110Sstevel@tonic-gate /* Additions for Solaris 2 */ 12*11038SRao.Shoaib@Sun.COM 13*11038SRao.Shoaib@Sun.COM #define SUNW_INITCHKIF /* Check if any non-loopback interface is up */ 14*11038SRao.Shoaib@Sun.COM #define SUNW_CONFCHECK /* Abort quickly if no /etc/resolv.conf or */ 15*11038SRao.Shoaib@Sun.COM /* local named */ 160Sstevel@tonic-gate #define SUNW_HOSTS_FALLBACK /* Configurable /etc/hosts fallback */ 170Sstevel@tonic-gate #define SUNW_HNOK_UNDERSCORE /* Allow underscore in hostnames (libresolv) */ 180Sstevel@tonic-gate #define SUNW_MT_RESOLVER /* MT hot extensions (libresolv) */ 190Sstevel@tonic-gate #define SUNW_SETHERRNO /* ISC does not set h_errno in gethostbyname */ 200Sstevel@tonic-gate #define SUNW_OVERRIDE_RETRY /* Allow NS switch to override res->retry */ 210Sstevel@tonic-gate #define SUNW_LIBMD5 /* Use md5(3EXT) instead of internal implementation */ 220Sstevel@tonic-gate 230Sstevel@tonic-gate /* If compiling an MT warm libresolv, we also need reentrancy */ 240Sstevel@tonic-gate #if defined(SUNW_MT_RESOLVER) && !defined(_REENTRANT) 250Sstevel@tonic-gate #define _REENTRANT 260Sstevel@tonic-gate #endif 270Sstevel@tonic-gate 280Sstevel@tonic-gate /* End additions for Solaris 2 */ 290Sstevel@tonic-gate 300Sstevel@tonic-gate #endif /* _SUNOPTIONS_H */ 31