diff options
Diffstat (limited to 'v4l/compat.h')
-rw-r--r-- | v4l/compat.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h index 6f198e688..4e23e5fc5 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -466,6 +466,19 @@ static inline unsigned int snd_pcm_rate_to_rate_bit(unsigned int rate) # define task_pid_nr(current) ((current)->pid) #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) +# define sg_init_table(a,b) +# define sg_page(p) (sg->page) +# define sg_set_page(sglist,pg,sz,off) \ +do { \ + struct scatterlist *p=sglist; \ + p->page = pg; \ + p->length = sz; \ + p->offset = off; \ +} while (0) +#endif + + #endif /* * Local variables: |