1*0Sstevel@tonic-gate /* $Id: fake-getnameinfo.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */ 2*0Sstevel@tonic-gate 3*0Sstevel@tonic-gate #ifndef _FAKE_GETNAMEINFO_H 4*0Sstevel@tonic-gate #define _FAKE_GETNAMEINFO_H 5*0Sstevel@tonic-gate 6*0Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 7*0Sstevel@tonic-gate 8*0Sstevel@tonic-gate #ifdef __cplusplus 9*0Sstevel@tonic-gate extern "C" { 10*0Sstevel@tonic-gate #endif 11*0Sstevel@tonic-gate 12*0Sstevel@tonic-gate #include "config.h" 13*0Sstevel@tonic-gate 14*0Sstevel@tonic-gate #ifndef HAVE_GETNAMEINFO 15*0Sstevel@tonic-gate int getnameinfo(const struct sockaddr *sa, size_t salen, char *host, 16*0Sstevel@tonic-gate size_t hostlen, char *serv, size_t servlen, int flags); 17*0Sstevel@tonic-gate #endif /* !HAVE_GETNAMEINFO */ 18*0Sstevel@tonic-gate 19*0Sstevel@tonic-gate #ifndef NI_MAXSERV 20*0Sstevel@tonic-gate # define NI_MAXSERV 32 21*0Sstevel@tonic-gate #endif /* !NI_MAXSERV */ 22*0Sstevel@tonic-gate #ifndef NI_MAXHOST 23*0Sstevel@tonic-gate # define NI_MAXHOST 1025 24*0Sstevel@tonic-gate #endif /* !NI_MAXHOST */ 25*0Sstevel@tonic-gate 26*0Sstevel@tonic-gate #ifdef __cplusplus 27*0Sstevel@tonic-gate } 28*0Sstevel@tonic-gate #endif 29*0Sstevel@tonic-gate 30*0Sstevel@tonic-gate #endif /* _FAKE_GETNAMEINFO_H */ 31