[openib-general] Re: RFC: kill CFLAGS in makefiles?
    Roland Dreier 
    rdreier at cisco.com
       
    Wed Mar 22 13:28:25 PST 2006
    
    
  
    Jason> If you keep the -I you can do this:
    Jason> Source: #include <linux/mutex.h>
    Jason> #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,16)
    Jason> #include_next <linux/mutex.h> // goes to linux/include/mutex.h
    Jason> #else
    Jason> The benifit being that the ugly hackery in the source files
    Jason> can go away.
Yes, had I known about that it would have been a much better solution :)
Well, next time...
Anyway, all the hackery is gone now that 2.6.16 is out.
 - R.
    
    
More information about the general
mailing list