linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: C Anthony Risinger <anthony@extof.me>
To: linux-btrfs@vger.kernel.org
Subject: missing include from btrfsck.c?
Date: Wed, 9 Jun 2010 19:11:37 -0500	[thread overview]
Message-ID: <AANLkTikZeG26t38KwkTYZITlKpHGkCKPKDHwSU5eJNRx@mail.gmail.com> (raw)

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

                 reply	other threads:[~2010-06-10  0:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTikZeG26t38KwkTYZITlKpHGkCKPKDHwSU5eJNRx@mail.gmail.com \
    --to=anthony@extof.me \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).