mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 01:51:51 +00:00
fown: Fix compilation for older distros
Some of them (FC12 I debug on) doesn't have fown_ex stuff in their libc. Add the missing declarations. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
59a2f13e7e
commit
9a2d2a6990
@ -204,4 +204,16 @@ enum kcmp_type {
|
||||
# define SCM_MAX_FD 253
|
||||
#endif
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
#ifndef F_SETOWN_EX
|
||||
#define F_SETOWN_EX 15
|
||||
#define F_GETOWN_EX 16
|
||||
|
||||
struct f_owner_ex {
|
||||
int type;
|
||||
pid_t pid;
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif /* CR_TYPES_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user