Fix alignment issue on 64-bit. Solution from Steve Ortiz.
[rsync/rsync-patches.git] / tru64.diff
CommitLineData
2c8f6e6e 1This is an adapted version of the original by Zoong Pham.
fbc35144 2
03019e41
WD
3To use this patch, run these commands for a successful build:
4
5 patch -p1 <patches/tru64.diff
6 ./configure (optional if already run)
7 make
8
c1ff70aa 9based-on: a01e3b490eb36ccf9e704840e1b6683dab867550
cc3e685d
WD
10diff --git a/syscall.c b/syscall.c
11--- a/syscall.c
12+++ b/syscall.c
c8a8b4a7 13@@ -23,6 +23,7 @@
a60267ab 14 #include "rsync.h"
fbc35144 15
09fb8f03 16 #if !defined MKNOD_CREATES_SOCKETS && defined HAVE_SYS_UN_H
fbc35144 17+#define _SOCKADDR_LEN
9bb5ff6c 18 #include <sys/un.h>
2c8f6e6e 19 #endif
99397a25 20 #ifdef HAVE_SYS_ATTR_H