4318f6f80c
mrsync is a tool to transfer files from a master to many remote machines in LAN using Unix multicast sockets. It dynamically adjusts its transfer speed to ease on the network and to leave no one behind. 4 hours for 140GB to 100 targets in 1Gbit LAN
20 lines
463 B
Text
20 lines
463 B
Text
$NetBSD: patch-ad,v 1.1.1.1 2011/12/02 05:40:00 agc Exp $
|
|
|
|
get the right headers
|
|
|
|
--- sends.c 2011/11/30 20:38:41 1.1
|
|
+++ sends.c 2011/11/30 20:39:07
|
|
@@ -35,10 +35,10 @@
|
|
|
|
#include "main.h"
|
|
#include <net/if.h>
|
|
-#ifdef _SUN
|
|
-#include <sys/sockio.h> /* define SIOCGIFADDR */
|
|
-#else
|
|
+#ifdef _linux__
|
|
#include <linux/sockios.h>
|
|
+#else
|
|
+#include <sys/sockio.h> /* define SIOCGIFADDR */
|
|
#endif
|
|
|
|
extern char * my_MCAST_ADDR; /* defined in multicaster.c */
|