Skip to contentSkip to conversation

Kernel include file

DISCUSSION Neo Wee Teck 2 participants 2 messages Dec 7, 2003 – Dec 9, 2003

lore
Share & tools
lore
#0 lore raw

Hmm... wrong idea...

<new kernel>/include/linux

update to..

/usr/include/linux

Should I?

Quoted 1 line · --- Mark Hahn

After upgrading to a newer version of the kernel, should I also copy/update the include folder to /usr/include?

no! /usr/include is userspace, which shall never use kernel headers. the headers you find in /usr/include that *look* like kernel headers are in fact from glibc.

_____________________________________________________________
Linux.Net -->Open Source to everyone
Powered by Linare Corporation
http://www.linare.com/

#1 lore raw
Quoted 9 lines · Neo Wee Teck

Hmm... wrong idea...

<new kernel>/include/linux

update to..

/usr/include/linux

Should I?

No.

The headers in /usr/include/linux "belong to" glibc and should never be changed, as it may cause newly compiled programs to break in nasty and subtle ways.

kernelnewbies.org has a nice FAQ item on this.

Matt