summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1994-09-22 21:51:49 +0000
committerpst <pst@FreeBSD.org>1994-09-22 21:51:49 +0000
commit4211db2faa77f090338865c8e84b28083a619837 (patch)
tree98f3980b7c9350a1c6b25d4ead3d70c9a597ff27 /usr.bin/dig
parentbd9687cba0ea622e7d0e53cb2012bd49775c1c39 (diff)
downloadFreeBSD-src-4211db2faa77f090338865c8e84b28083a619837.zip
FreeBSD-src-4211db2faa77f090338865c8e84b28083a619837.tar.gz
Port dig to FreeBSD
Diffstat (limited to 'usr.bin/dig')
-rw-r--r--usr.bin/dig/Makefile11
-rw-r--r--usr.bin/dig/dig.c6
2 files changed, 14 insertions, 3 deletions
diff --git a/usr.bin/dig/Makefile b/usr.bin/dig/Makefile
new file mode 100644
index 0000000..dd4044d
--- /dev/null
+++ b/usr.bin/dig/Makefile
@@ -0,0 +1,11 @@
+# @(#)Makefile 8.1 (Berkeley) 6/6/93
+
+PROG= dig
+MAN1= dig.1
+SRCS= dig.c debug.c list.c send.c subr.c
+
+NSLOOKUP=${.CURDIR}/../../usr.sbin/nslookup
+CFLAGS+=-I${NSLOOKUP}
+.PATH: ${NSLOOKUP}
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/dig/dig.c b/usr.bin/dig/dig.c
index 6ac5865..ed85b26 100644
--- a/usr.bin/dig/dig.c
+++ b/usr.bin/dig/dig.c
@@ -1,5 +1,5 @@
#ifndef lint
-static char rcsid[] = "$Id: dig.c,v 4.9.1.17 1994/07/19 22:51:24 vixie Exp $";
+static char rcsid[] = "$Id: dig.c,v 1.1.1.1 1994/09/22 21:33:31 pst Exp $";
#endif
/*
@@ -162,9 +162,9 @@ static char rcsid[] = "$Id: dig.c,v 4.9.1.17 1994/07/19 22:51:24 vixie Exp $";
#include <string.h>
#include <setjmp.h>
#include <fcntl.h>
+#include <stdlib.h>
-#include "nslookup/res.h"
-#include "../conf/portability.h"
+#include "../../usr.sbin/nslookup/res.h"
#define PRF_DEF 0x2ff9
#define PRF_MIN 0xA930
OpenPOWER on IntegriCloud