Add linux kernel version check for linux/dma-buf.h
I've packaged waypipe for the Chromebrew project. Chromebrew is built on top of the ChromeOS kernel, which on many devices is older than 4.6, which appears to be the kernel where dma-buf.h was introduced.
This PR implements a simple check to see if the kernel version is newer than 4.6. If this is not the case the fallback is to the default code defining DMA_BUF_IOCTL_SYNC
This compiles cleanly and runs on my x86_64 Pixel Slate system running kernel 4.4.250.
Packaging code I have used with our build system implementing this patch is here:https://github.com/skycocker/chromebrew/blob/7b9fbd8afcf0faf77986ba4f76205409976c0625/packages/waypipe.rb