OSDN Git Service

statfs: fix compile error when UCLIBC_LINUX_SPECIFIC is not set
authorAnthony G. Basile <blueness@gentoo.org>
Sat, 6 Sep 2014 23:45:34 +0000 (19:45 -0400)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 10 Nov 2014 09:08:17 +0000 (10:08 +0100)
commit8c57a5d9c2357dab48e80787a413f89405df1df3
tree1152b830c13d7e71ad43be0541dbf275e05fb393
parenta9bdc5d28e692c04f51bcea1bb8e87f9c72ad09f
statfs: fix compile error when UCLIBC_LINUX_SPECIFIC is not set

statfs() is a Linux-specific function.  When building without
UCLIBC_LINUX_SPECIFIC set, libc_hidden_proto(statfs) in
include/sys/statfs.h is unmatched with libc_hidden_def(statfs)
in libc/sysdeps/linux/common/statfs.c, leading to a compile
error.  This patch fixes this, as well as adds statfs() to the
list of Linux-specific functions in extra/Configs/Config.in.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
extra/Configs/Config.in
libc/sysdeps/linux/common/statfs.c