]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
cleanup: remove commented out includes in dns.c
authorSami Kerola <kerolasa@iki.fi>
Mon, 29 Aug 2016 11:42:59 +0000 (12:42 +0100)
committerSami Kerola <kerolasa@iki.fi>
Mon, 29 Aug 2016 11:45:28 +0000 (12:45 +0100)
Thees have been two years commented out, and if someone really has to fiddle
around with comments that is a failure of autotools usage and needs to be
addressed by getting the autoconf to do the right things.

dns.c

diff --git a/dns.c b/dns.c
index 1928e40b7d2c711667ddaf938065791bca0abf50..458988672cf56dd5f3281788def8cac08645752f 100644 (file)
--- a/dns.c
+++ b/dns.c
 
 #include "config.h"
 
-// This was a big "include everything" section. I've now commented out
-// most includes and we'll get complaints if we need something. Compiles
-// cleanly like this on Unbuntu 14.04 -- REW
-// AQ: Added signal.h for RedHat derivatives. 
-//#include <sys/types.h>
-//#include <sys/time.h>
-//#include <sys/select.h>
-//#include <sys/stat.h>
-//#include <sys/errno.h>
-//#include <sys/socket.h>
-//#include <netinet/in.h>
-//#include <arpa/inet.h>
-
-//#ifndef __APPLE__
-//#define BIND_8_COMPAT
-//#endif
-//#include <arpa/nameser.h>
-//#ifdef HAVE_ARPA_NAMESER_COMPAT_H
-//#include <arpa/nameser_compat.h>
-//#endif
-//#include <netdb.h>
-//#include <resolv.h>
 #ifdef HAVE_ERROR_H
 #include <error.h>
 #else
 #include <errno.h>
 #include <unistd.h>
 #include <fcntl.h>
-//#include <ctype.h>
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <signal.h>
-//#include <errno.h>
-//#include <time.h>
 
 #include "mtr.h"
 #include "dns.h"