2N/A/*
2N/A * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2N/A * Use is subject to license terms.
2N/A */
2N/A
2N/A#ifndef _ARPA_PORT_NAMESER_H
2N/A#define _ARPA_PORT_NAMESER_H
2N/A
2N/A/*
2N/A * ISC changed the ns_updrec structure. However, it's a public interface
2N/A * in Solaris, so we rename it here and wrap in sunw_updrec.c
2N/A */
2N/A#define ns_updrec __ISC_ns_updrec
2N/A
2N/A
2N/A/*
2N/A * Due to the above, the following functions need to be renamed and
2N/A * wrapped in sunw_updrec.c.
2N/A *
2N/A * For BIND 8.2.2, ISC removed the dynamic update functions, and the
2N/A * definition of the ns_updrec structure, from the public include files
2N/A * (<resolv.h>, <arpa/nameser.h>. However, res_update(), res_mkupdate(),
2N/A * and res_mkupdrec() are in the public libresolv interface in Solaris,
2N/A * so we can't easily remove them. Thus, ISC's new versions of res_mkupdate()
2N/A * etc. can't be exposed under their original names.
2N/A *
2N/A * res_nmkupdate() and res_nupdate are new. We could either change them
2N/A * to accept the <arpa/nameser.h> ns_updrec, or leave them unchanged and
2N/A * undocumented. Since ISC may change ns_updrec again, we pick the latter
2N/A * solution for now.
2N/A */
2N/A#define res_mkupdate __ISC_res_mkupdate
2N/A#define res_update __ISC_res_update
2N/A#define res_mkupdrec __ISC_res_mkupdrec
2N/A#define res_freeupdrec __ISC_res_freeupdrec
2N/A#define res_nmkupdate __ISC_res_nmkupdate
2N/A#define res_nupdate __ISC_res_nupdate
2N/A
2N/A
2N/A#endif /* _ARPA_PORT_NAMESER_H */