Skip to contentSkip to conversation

Why 'linux/fs.h' cannot be included? I *can*...

DISCUSSION DervishD 2 participants 2 messages Jan 28, 2002

lore
Share & tools
lore

DervishD

author
#0 lore raw

Hello all :))

I've reading the source code for 'blockdev', from util-linux, and
the comments says that the header 'linux/fs.h' cannot be included. I've tried, just adding an include and removing the hand made definitions (cloning those of fs.h), and all works ok :??

This header can be included or not? It works for me, with headers
from 2.4.17, so, is it just for backwards compatibility?

Thanks a lot in advance :)
Ra�l

#1 lore raw
Quoted 9 lines · DervishD

Hello all :))

I've reading the source code for 'blockdev', from util-linux, and
the comments says that the header 'linux/fs.h' cannot be included. I've tried, just adding an include and removing the hand made definitions (cloning those of fs.h), and all works ok :??

This header can be included or not? It works for me, with headers
from 2.4.17, so, is it just for backwards compatibility?

Policy. It is for forwards compatibility. The general policy on kernel headers is that if it breaks you get to keep the pieces.

Eric