linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* missing include from btrfsck.c?
@ 2010-06-10  0:11 C Anthony Risinger
  0 siblings, 0 replies; only message in thread
From: C Anthony Risinger @ 2010-06-10  0:11 UTC (permalink / raw)
  To: linux-btrfs

i'm not a C developer, but i like to think i know enough to be
dangerous (pragmatic) :-D

building from git master failed with:

=2E.........
=2E.........
gcc -Wp,-MMD,./.btrfsck.o.d,-MT,btrfsck.o -Wall -D_FILE_OFFSET_BITS=3D6=
4
-D_FORTIFY_SOURCE=3D2 -g -Werror -Os -c btrfsck.c
cc1: warnings being treated as errors
btrfsck.c: In function =91maybe_free_inode_rec=92:
btrfsck.c:323:2: error: implicit declaration of function =91S_ISDIR=92
btrfsck.c:328:2: error: implicit declaration of function =91S_ISREG=92
btrfsck.c:328:2: error: implicit declaration of function =91S_ISLNK=92
make: *** [btrfsck.o] Error 1

grepping the source turned up several other files successfully using
those functions.  after a quick serach, it looked to be a part of
stat... and the other files were all including <sys/stat.h>. i'm not
sure if it's my gcc being paranoid (archlinux), but adding:

#include <sys/stat.h>

to btrfsck.c fixed the issue for me.

C Anthony
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-10  0:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-10  0:11 missing include from btrfsck.c? C Anthony Risinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).