This is an automated email from the git hooks/post-receive script. s k u n n y k p u s h e d a c o m m i t t o b r a n c h m a s t e r in repository xfce/xfce4-session.
commit e1f78f1462adfb6ed27b9165d4e027389f47235b Author: Romain Bouvier <[email protected]> Date: Fri Apr 19 19:47:33 2019 +0200 Remove useless ioprio.h check - We don't use this code anymore since age --- configure.ac.in | 15 --------------- xfce4-session/xfsm-manager.c | 20 -------------------- 2 files changed, 35 deletions(-) diff --git a/configure.ac.in b/configure.ac.in index c2c943d..d3f5d1f 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -160,21 +160,6 @@ else AC_MSG_RESULT([yes]) fi -dnl check for linux/ioprio.h, and also check that the header actually -dnl works, as some kernels have bad headers. using AC_CHECK_HEADERS() -dnl prints a scary warning with a request to report a bug if it fails, -dnl but we do not want that. -AC_MSG_CHECKING([whether linux/ioprio.h exists and actually works]) -AC_COMPILE_IFELSE([ -AC_INCLUDES_DEFAULT -#include <linux/ioprio.h> - ], [linux_ioprio_works=yes], [linux_ioprio_works=no]) -AC_MSG_RESULT([$linux_ioprio_works]) -if test "x$linux_ioprio_works" = "xyes"; then - AC_DEFINE([HAVE_WORKING_LINUX_IOPRIO_H], [1], - [Defined if linux/ioprio.h not only exists, but works properly]) -fi - dnl Compile time default choice of backend AC_ARG_WITH([backend], AS_HELP_STRING([--with-backend=<option>], diff --git a/xfce4-session/xfsm-manager.c b/xfce4-session/xfsm-manager.c index 0b8cab6..b9f258a 100644 --- a/xfce4-session/xfsm-manager.c +++ b/xfce4-session/xfsm-manager.c @@ -41,26 +41,6 @@ #include <unistd.h> #endif -/* unfortunately, glibc doesn't have a wrapper for the ioprio_set () - * syscall, so we have to do it the hard way. also, it seems some - * systems don't have <linux/ioprio.h>, so i'll copy the defines here. - */ -#ifdef HAVE_ASM_UNISTD_H -# include <asm/unistd.h> -# include <sys/syscall.h> -# ifdef __NR_ioprio_set -# ifdef HAVE_WORKING_LINUX_IOPRIO_H -# include <linux/ioprio.h> -# else /* if !HAVE_WORKING_LINUX_IOPRIO_H */ -# define IOPRIO_CLASS_SHIFT (13) -# define IOPRIO_PRIO_MASK ((1UL << IOPRIO_CLASS_SHIFT) - 1) -# define IOPRIO_PRIO_VALUE(class, data) (((class) << IOPRIO_CLASS_SHIFT) | data) -# define IOPRIO_WHO_PROCESS (1) -# define IOPRIO_CLASS_IDLE (3) -# endif /* !HAVE_WORKING_LINUX_IOPRIO_H */ -# endif /* __NR_ioprio_set */ -#endif /* HAVE_ASM_UNISTD_H */ - #include <gio/gio.h> #include <X11/ICE/ICElib.h> -- To stop receiving notification emails like this one, please contact the administrator of this repository. _______________________________________________ Xfce4-commits mailing list [email protected] https://mail.xfce.org/mailman/listinfo/xfce4-commits
