2
0
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:
Pavel Emelyanov 2012-04-25 21:36:43 +04:00
parent 59a2f13e7e
commit 9a2d2a6990
2 changed files with 13 additions and 0 deletions

View File

@ -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_ */

View File

@ -2,6 +2,7 @@
* RBtree implementation adopted from the Linux kernel sources.
*/
#include <sys/types.h>
#include "rbtree.h"
static void __rb_rotate_left(struct rb_node *node, struct rb_root *root)