[mythtv] [PATCH] O_STREAMING patch

Kevin Elliott kevin at phunc.com
Tue Dec 23 15:06:10 EST 2003


On Tue, Dec 23, 2003 at 05:11:05AM -0800, J. Donavan Stanley wrote:
> >O_STREAMING won't necessarilly be defined in the header files after 
> >patching the kernel though because most people don't have /usr/include/asm 
> >symlinked to the actual kernel source they're running. :(
> >Maybe a settings.pro option instead?
> > 
> >
> 
> Wouldn't it be sufficient to assume that if they've patched their kernel 
> they've got /usr/include/asm symlinked properly?

It is not safe to assume that /usr/include/asm is symlinked to the current
source at all. Generally, when patching kernel source, you patch against
the kernel source directory directly, and patches rarely affect the filesystem
at large. Furthermore, many linux distributions do not let kernel source
packages modify include links, and offer a seperate package for them (i.e.
linux-headers in gentoo). Keep in mind that the system headers do not necessarily
need to match the current kernel, and in many cases isn't wise to do for
compatibility with some applications. For example, when compiling third-party
kernel modules, included is linux/modversions.h. This is fine for 2.4.x and 
below, but 2.6.x moved modversions.h to config/modversions.h. Just an
example.

Manual configuration, or some form of autodetection (configure) is required.
Assumptions would be a mistake in this case...

Regards,

Kevin Elliott
kevin at phunc.com
http://www.kevinelliott.net/


More information about the mythtv-dev mailing list