1*11038SRao.Shoaib@Sun.COM /* 2*11038SRao.Shoaib@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 3*11038SRao.Shoaib@Sun.COM * Use is subject to license terms. 4*11038SRao.Shoaib@Sun.COM */ 5*11038SRao.Shoaib@Sun.COM 6*11038SRao.Shoaib@Sun.COM #ifndef _ARPA_PORT_NAMESER_H 7*11038SRao.Shoaib@Sun.COM #define _ARPA_PORT_NAMESER_H 8*11038SRao.Shoaib@Sun.COM 9*11038SRao.Shoaib@Sun.COM /* 10*11038SRao.Shoaib@Sun.COM * ISC changed the ns_updrec structure. However, it's a public interface 11*11038SRao.Shoaib@Sun.COM * in Solaris, so we rename it here and wrap in sunw_updrec.c 12*11038SRao.Shoaib@Sun.COM */ 13*11038SRao.Shoaib@Sun.COM #define ns_updrec __ISC_ns_updrec 14*11038SRao.Shoaib@Sun.COM 15*11038SRao.Shoaib@Sun.COM 16*11038SRao.Shoaib@Sun.COM /* 17*11038SRao.Shoaib@Sun.COM * Due to the above, the following functions need to be renamed and 18*11038SRao.Shoaib@Sun.COM * wrapped in sunw_updrec.c. 19*11038SRao.Shoaib@Sun.COM * 20*11038SRao.Shoaib@Sun.COM * For BIND 8.2.2, ISC removed the dynamic update functions, and the 21*11038SRao.Shoaib@Sun.COM * definition of the ns_updrec structure, from the public include files 22*11038SRao.Shoaib@Sun.COM * (<resolv.h>, <arpa/nameser.h>. However, res_update(), res_mkupdate(), 23*11038SRao.Shoaib@Sun.COM * and res_mkupdrec() are in the public libresolv interface in Solaris, 24*11038SRao.Shoaib@Sun.COM * so we can't easily remove them. Thus, ISC's new versions of res_mkupdate() 25*11038SRao.Shoaib@Sun.COM * etc. can't be exposed under their original names. 26*11038SRao.Shoaib@Sun.COM * 27*11038SRao.Shoaib@Sun.COM * res_nmkupdate() and res_nupdate are new. We could either change them 28*11038SRao.Shoaib@Sun.COM * to accept the <arpa/nameser.h> ns_updrec, or leave them unchanged and 29*11038SRao.Shoaib@Sun.COM * undocumented. Since ISC may change ns_updrec again, we pick the latter 30*11038SRao.Shoaib@Sun.COM * solution for now. 31*11038SRao.Shoaib@Sun.COM */ 32*11038SRao.Shoaib@Sun.COM #define res_mkupdate __ISC_res_mkupdate 33*11038SRao.Shoaib@Sun.COM #define res_update __ISC_res_update 34*11038SRao.Shoaib@Sun.COM #define res_mkupdrec __ISC_res_mkupdrec 35*11038SRao.Shoaib@Sun.COM #define res_freeupdrec __ISC_res_freeupdrec 36*11038SRao.Shoaib@Sun.COM #define res_nmkupdate __ISC_res_nmkupdate 37*11038SRao.Shoaib@Sun.COM #define res_nupdate __ISC_res_nupdate 38*11038SRao.Shoaib@Sun.COM 39*11038SRao.Shoaib@Sun.COM 40*11038SRao.Shoaib@Sun.COM #endif /* _ARPA_PORT_NAMESER_H */ 41