diff options
author | Michael Haro <mharo@FreeBSD.org> | 2001-04-02 06:20:08 +0000 |
---|---|---|
committer | Michael Haro <mharo@FreeBSD.org> | 2001-04-02 06:20:08 +0000 |
commit | cb96989f7e16e8bc9e694f51ea75548c21d2bad4 (patch) | |
tree | fc15e4e879c064349cf2cd207fec27d31d5208b8 /net/dhisd/files/patch-nsupdate.c | |
parent | update to 0.5.8 (diff) |
Port update to version 4.0.3
PR: 26257
Submitted by: <baskruit@bsltwr.dnsalias.org>
Diffstat (limited to '')
-rw-r--r-- | net/dhisd/files/patch-nsupdate.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net/dhisd/files/patch-nsupdate.c b/net/dhisd/files/patch-nsupdate.c new file mode 100644 index 000000000000..53e73f5ca19a --- /dev/null +++ b/net/dhisd/files/patch-nsupdate.c @@ -0,0 +1,31 @@ +--- nsupdate.c.orig Mon Mar 19 22:23:40 2001 ++++ nsupdate.c Mon Mar 19 22:55:46 2001 +@@ -28,8 +28,17 @@ + + + #include"dhisd.h" +-#ifndef BIND821 +-#include <res_update.h> ++ ++#ifdef HAVE_SYS_PARAM_H ++#include <sys/param.h> ++#endif ++ ++#if (defined(BSD) && (BSD >= 199306)) ++# include <arpa/nameser.h> ++#else ++# if !defined BIND821 ++# include <res_update.h> ++# endif + #endif + + int dns_update(unsigned char *r_dname,int r_opcode,short int r_type, +@@ -53,7 +62,7 @@ + rrecp->r_size=r_size; + if(r_size>0) strcpy(rrecp->r_data,r_data); + +-#ifndef BIND821 ++#if !defined(BIND821) && !defined(BSD) + rrecp->r_link.prev=NULL; + rrecp->r_link.next=NULL; + #else |