--- libfakeroot.c.orig 2014-10-05 17:16:00.000000000 +0200
+++ libfakeroot.c 2015-12-21 18:13:37.000000000 +0100
#define INT_NEXT_FSTATAT(a,b,c,d) NEXT_FSTATAT(_STAT_VER,a,b,c,d)
#define INT_SEND_STAT(a,b) SEND_STAT(a,b,_STAT_VER)
#define INT_SEND_GET_XATTR(a,b) SEND_GET_XATTR(a,b,_STAT_VER)
+/* 10.10 uses id_t in getpriority/setpriority calls, so pretend
+ id_t is used everywhere, just happens to be int on some OSes */
#endif /* HAVE_SYS_ACL_H */
#endif /* HAVE_FREMOVEXATTR */
-int setpriority(int which, int who, int prio){
+int setpriority(int which, id_t who, int prio){
return next_setpriority(which, who, prio);
next_setpriority(which, who, prio);
+int openat(int dir_fd, const char *pathname, int flags, ...)
+ mode = va_arg(args, int);
+ return next_openat(dir_fd, pathname, flags, mode);
+ return next_openat(dir_fd, pathname, flags, NULL);