define INADDR_NONE if necessary
[rsync/rsync.git] / rsync.h
diff --git a/rsync.h b/rsync.h
index 692584a..bbfe689 100644 (file)
--- a/rsync.h
+++ b/rsync.h
 #include <arpa/inet.h>
 #include <netdb.h>
 #include <syslog.h>
+#include <sys/file.h>
 
 #ifndef S_IFLNK
 #define S_IFLNK  0120000
 #define MAXPATHLEN 1024
 #endif
 
+#ifndef INADDR_NONE
+#define INADDR_NONE 0xffffffff
+#endif
+
 struct file_struct {
        unsigned flags;
        time_t modtime;