#248 vfs.h and statvfs.h not found

closed-invalid
Earnie Boyd
MinGW (56)
2002-12-29
2002-12-29
hala
No

after instalation of MinGW and while compiling my first C source code I get the following
eror message:

"
tools.c:22:21: sys/vfs.h: No such file or directory
tools.c:23:25: sys/statvfs.h: No such file or directory
tools.c:25:21: termios.h: No such file or directory
"

the files vfs.h, statvfs.h and termios.h are not found in my MinGW\include.

Any idea where I can find these?

Thanks.

Discussion

  • Luke Dunstan
    Luke Dunstan
    2002-12-29

    • status: open --> closed-invalid
     
  • Luke Dunstan
    Luke Dunstan
    2002-12-29

    Logged In: YES
    user_id=30442

    AFAIK those are POSIX headers so there is no reason why
    they should be included with MinGW. MinGW only supports
    ANSI and any extensions in MSVCRT.DLL.

     
  • hala
    hala
    2002-12-29

    Logged In: YES
    user_id=676968

    OK. Many thanks.
    So what is the best way to integrate missing code files such as vfs.h so that I can
    compile my program sucessfully under mingw ?

    Thanks.

     
  • Earnie Boyd
    Earnie Boyd
    2002-12-29

    Logged In: YES
    user_id=15438

    It's a method known as porting. You have to find the Win32
    equivalent and use the proper #if defined _WIN32 in the
    code. Or supply the functions and headers in a Win32
    subdirectory and make sure that they are compiled when
    target_os is mingw32.

    Earnie.