Package: deheader
Version: 1.6-1

I discovered this issue when testing deheader on the tsdfx code base.
It claimed fstatvfs() required <sys/fstatvfs.h>, but this is not true.
There is no such header file.  The required header file, according to
The Open Group (aka the POSIX standard) is <sys/statvfs.h>, se
<URL: 
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/statvfs.h.html >.

Here is how to reproduce it:

  cat EOF > x.c
  #include <sys/statvfs.h>
  int main(int argc, char *argv[])
  {
    struct statvfs st;
    return fstatvfs(0, &st);
  }
  EOF
  % deheader x.c 
  deheader: in x.c, fstatvfs() portability requires <sys/fstatvfs.h>.
  deheader: saw 1 files, 0 includes, 0 removable
  %

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to