1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-29 21:39:24 +00:00
freebsd-ports/net/dhisd/files/patch-nsupdate.c
Michael Haro cb96989f7e Port update to version 4.0.3
PR:             26257
Submitted by:        <baskruit@bsltwr.dnsalias.org>
2001-04-02 06:20:08 +00:00

32 lines
655 B
C

--- 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