diff options
Diffstat (limited to 'v4l/compat.h')
-rw-r--r-- | v4l/compat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h index db45d91f0..6f198e688 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -462,6 +462,10 @@ static inline unsigned int snd_pcm_rate_to_rate_bit(unsigned int rate) } #endif +#ifndef task_pid_nr +# define task_pid_nr(current) ((current)->pid) +#endif + #endif /* * Local variables: |