From bc8eb09256b1c294ce3bfeb473e7d7b57b7b6073 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 22 Jan 2017 17:05:39 +0000 Subject: [PATCH] vfs/tar/tar.c: add makedev() declaration Noticed as a build failure on gentoo/glibc-2.24 as: CCLD mc ./.libs/libinternal.a(tar.o): In function `tar_fill_stat': /home/slyfox/dev/git/mc/src/vfs/tar/tar.c:428: undefined reference to `makedev' collect2: error: ld returned 1 exit status The change uses "lib/unixcompat.h" to pull 'makedev()' declaration from proper header. Signed-off-by: Sergei Trofimovich --- src/vfs/tar/tar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vfs/tar/tar.c b/src/vfs/tar/tar.c index eaeaac574..3afd8d68d 100644 --- a/src/vfs/tar/tar.c +++ b/src/vfs/tar/tar.c @@ -47,6 +47,7 @@ #include "lib/global.h" #include "lib/util.h" +#include "lib/unixcompat.h" /* makedev() */ #include "lib/widget.h" /* message() */ #include "lib/vfs/vfs.h"