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 <siarheit@google.com>
This commit is contained in:
Sergei Trofimovich 2017-01-22 17:05:39 +00:00
parent 9845fa6ce5
commit bc8eb09256

View File

@ -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"