diff -x .deps -x autom4te.cache -ur mtr-0.78/AUTHORS mtr-0.79/AUTHORS
--- mtr-0.78/AUTHORS	2008-08-19 18:55:47.000000000 +0200
+++ mtr-0.79/AUTHORS	2010-06-08 13:14:03.000000000 +0200
@@ -50,6 +50,7 @@
         Bill Bogstad (bogstad@pobox.com) 
         Marc Bejarano (marc.bejarano@openwave.com)
         Moritz Barsnick (barsnick@gmx.net)
+        Thomas Klausner <wiz@NetBSD.org>
 
         and anyone who has slipped through the cracks of my mail file.
 
diff -x .deps -x autom4te.cache -ur mtr-0.78/configure mtr-0.79/configure
--- mtr-0.78/configure	2010-06-07 09:00:57.000000000 +0200
+++ mtr-0.79/configure	2010-06-08 16:34:39.000000000 +0200
@@ -2039,7 +2039,7 @@
 
 # Define the identity of the package.
  PACKAGE=mtr
- VERSION=0.78
+ VERSION=0.79
 
 
 cat >>confdefs.h <<_ACEOF
@@ -5691,7 +5691,9 @@
 done
 
 
-for ac_header in sys/xti.h
+
+
+for ac_header in socket.h sys/socket.h sys/xti.h
 do
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
@@ -7835,6 +7837,12 @@
 /* end confdefs.h.  */
 
 #include <netinet/in.h>
+#ifdef HAVE_SOCKET_H
+#include <socket.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
 
 
 typedef socklen_t ac__type_new_;
diff -x .deps -x autom4te.cache -ur mtr-0.78/configure.in mtr-0.79/configure.in
--- mtr-0.78/configure.in	2010-06-01 08:32:20.000000000 +0200
+++ mtr-0.79/configure.in	2010-06-08 13:07:03.000000000 +0200
@@ -1,5 +1,5 @@
 AC_INIT(mtr.c)
-AM_INIT_AUTOMAKE(mtr, 0.78)
+AM_INIT_AUTOMAKE(mtr, 0.79)
 
 
 AC_SUBST(GTK_OBJ)
@@ -16,7 +16,7 @@
 AC_CHECK_SIZEOF(unsigned long, 4)
 
 AC_CHECK_HEADERS(ncurses.h ncurses/curses.h curses.h cursesX.h sys/types.h fcntl.h)
-AC_CHECK_HEADERS(sys/xti.h)
+AC_CHECK_HEADERS(socket.h sys/socket.h sys/xti.h)
 
 # Some doc I found somewhere. :-) -- REW
 # - Macro: AC_CHECK_FUNC (FUNCTION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
@@ -97,6 +97,12 @@
 
 AC_CHECK_TYPE(socklen_t, AC_DEFINE([HAVE_SOCKLEN_T], [], [Define if your system has socklen_t]) , , [[
 #include <netinet/in.h>
+#ifdef HAVE_SOCKET_H
+#include <socket.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
 ]])
 
 AC_CHECK_TYPE(struct in_addr, AC_DEFINE([HAVE_STRUCT_INADDR], [], [Define if you have struct in_addr]), , [[
Only in mtr-0.79: Makefile
diff -x .deps -x autom4te.cache -ur mtr-0.78/NEWS mtr-0.79/NEWS
--- mtr-0.78/NEWS	2010-02-14 08:40:33.000000000 +0100
+++ mtr-0.79/NEWS	2010-06-08 13:14:40.000000000 +0200
@@ -1,4 +1,6 @@
 WHAT'S NEW?
+  V0.78/0.79 some compilation fixes for BSD&others by 
+        Thomas Klausner <wiz@NetBSD.org>
   V0.76 display load sharing hosts in --raw output. 
         added about button in gui. 
   v0.75 Feelgood patch to move sprintf to snprintf. People might think
