mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 09:58:09 +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
|
# define SCM_MAX_FD 253
|
||||||
#endif
|
#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_ */
|
#endif /* CR_TYPES_H_ */
|
||||||
|
1
rbtree.c
1
rbtree.c
@ -2,6 +2,7 @@
|
|||||||
* RBtree implementation adopted from the Linux kernel sources.
|
* RBtree implementation adopted from the Linux kernel sources.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
#include "rbtree.h"
|
#include "rbtree.h"
|
||||||
|
|
||||||
static void __rb_rotate_left(struct rb_node *node, struct rb_root *root)
|
static void __rb_rotate_left(struct rb_node *node, struct rb_root *root)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user