Files
packages/net/rsync/patches/001-fix-makedev-issue.patch
Florian Eckert c13b6f055d rsync: fix compilation for undefined reference ot makedev
This change fixes the following compilation error for rsync

generator.c:(.text+0x4872): undefined reference to `makedev'

Glibc removes sys/sysmacros.h which defines makedev from sys/types.h
since v2.28.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-03-01 11:57:22 +01:00

11 lines
217 B
Diff

--- a/rsync.h
+++ b/rsync.h
@@ -307,6 +307,7 @@ enum delret {
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
+# include <sys/sysmacros.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>