17c478bd9Sstevel@tonic-gate /* 2*9525b14bSRao Shoaib * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 37c478bd9Sstevel@tonic-gate * Use is subject to license terms. 47c478bd9Sstevel@tonic-gate */ 57c478bd9Sstevel@tonic-gate 67c478bd9Sstevel@tonic-gate #ifndef _SUNOPTIONS_H 77c478bd9Sstevel@tonic-gate #define _SUNOPTIONS_H 87c478bd9Sstevel@tonic-gate 9*9525b14bSRao Shoaib #define USELOOPBACK /* Resolver library defaults to 127.0.0.1 */ 107c478bd9Sstevel@tonic-gate 117c478bd9Sstevel@tonic-gate /* Additions for Solaris 2 */ 12*9525b14bSRao Shoaib 137c478bd9Sstevel@tonic-gate #define SUNW_INITCHKIF /* Check if any non-loopback interface is up */ 14*9525b14bSRao Shoaib #define SUNW_CONFCHECK /* Abort quickly if no /etc/resolv.conf or */ 15*9525b14bSRao Shoaib /* local named */ 167c478bd9Sstevel@tonic-gate #define SUNW_HOSTS_FALLBACK /* Configurable /etc/hosts fallback */ 177c478bd9Sstevel@tonic-gate #define SUNW_HNOK_UNDERSCORE /* Allow underscore in hostnames (libresolv) */ 187c478bd9Sstevel@tonic-gate #define SUNW_MT_RESOLVER /* MT hot extensions (libresolv) */ 197c478bd9Sstevel@tonic-gate #define SUNW_SETHERRNO /* ISC does not set h_errno in gethostbyname */ 207c478bd9Sstevel@tonic-gate #define SUNW_OVERRIDE_RETRY /* Allow NS switch to override res->retry */ 217c478bd9Sstevel@tonic-gate #define SUNW_LIBMD5 /* Use md5(3EXT) instead of internal implementation */ 227c478bd9Sstevel@tonic-gate 237c478bd9Sstevel@tonic-gate /* If compiling an MT warm libresolv, we also need reentrancy */ 247c478bd9Sstevel@tonic-gate #if defined(SUNW_MT_RESOLVER) && !defined(_REENTRANT) 257c478bd9Sstevel@tonic-gate #define _REENTRANT 267c478bd9Sstevel@tonic-gate #endif 277c478bd9Sstevel@tonic-gate 287c478bd9Sstevel@tonic-gate /* End additions for Solaris 2 */ 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gate #endif /* _SUNOPTIONS_H */ 31