|
Revision 2788, 1.3 kB
(checked in by dhozac, 2 months ago)
|
Use version 3 to avoid warning message in newer kernels.
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
#ifdef HAVE_CONFIG_H |
|---|
| 20 |
# include <config.h> |
|---|
| 21 |
#endif |
|---|
| 22 |
|
|---|
| 23 |
#ifdef HAVE_SYS_CAPABILITY_H |
|---|
| 24 |
# include <sys/capability.h> |
|---|
| 25 |
#else |
|---|
| 26 |
# include <linux/capability.h> |
|---|
| 27 |
|
|---|
| 28 |
extern int capget (struct __user_cap_header_struct *, struct __user_cap_data_struct *); |
|---|
| 29 |
extern int capset (struct __user_cap_header_struct *, struct __user_cap_data_struct *); |
|---|
| 30 |
|
|---|
| 31 |
#endif |
|---|
| 32 |
|
|---|
| 33 |
#ifndef _LINUX_CAPABILITY_VERSION_1 |
|---|
| 34 |
# define _LINUX_CAPABILITY_VERSION_1 _LINUX_CAPABILITY_VERSION |
|---|
| 35 |
#endif |
|---|
| 36 |
|
|---|
| 37 |
#ifndef _LINUX_CAPABILITY_VERSION_3 |
|---|
| 38 |
# define _LINUX_CAPABILITY_VERSION_3 0x20080522 |
|---|
| 39 |
#endif |
|---|