diff options
Diffstat (limited to 'backup/cpdup/files')
-rw-r--r-- | backup/cpdup/files/Makefile.linux | 13 | ||||
-rw-r--r-- | backup/cpdup/files/cpdup-1.11-unused.patch | 14 |
2 files changed, 27 insertions, 0 deletions
diff --git a/backup/cpdup/files/Makefile.linux b/backup/cpdup/files/Makefile.linux new file mode 100644 index 000000000000..3e18e4e0b218 --- /dev/null +++ b/backup/cpdup/files/Makefile.linux @@ -0,0 +1,13 @@ +OBJS = cpdup.o fsmid.o hclink.o hcproto.o misc.o + +CFLAGS += -D__cpdup_unused="__attribute__ ((unused))" -D_GNU_SOURCE -D__USE_FILE_OFFSET64 -DNOMD5 + +ifndef NOPTHREADS +CFLAGS += -DUSE_PTHREADS=1 -pthread +endif + +all: $(OBJS) + $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o cpdup + +.c.o: + $(CC) $(CFLAGS) -c -o $@ $< diff --git a/backup/cpdup/files/cpdup-1.11-unused.patch b/backup/cpdup/files/cpdup-1.11-unused.patch new file mode 100644 index 000000000000..5544afbeddf9 --- /dev/null +++ b/backup/cpdup/files/cpdup-1.11-unused.patch @@ -0,0 +1,14 @@ +--- a/cpdup.c ++++ b/cpdup.c +@@ -1543,7 +1543,11 @@ + */ + + static int ++#ifdef _ST_FLAGS_PRESENT_ + xrename(const char *src, const char *dst, u_long flags) ++#else ++xrename(const char *src, const char *dst, u_long flags __unused) ++#endif + { + int r; + |