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>
This commit is contained in:
Florian Eckert
2021-03-01 11:48:41 +01:00
parent 19ccf8a96f
commit c13b6f055d

View File

@@ -0,0 +1,10 @@
--- 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>