Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

include/vzsyscalls.h: only define __NR_ioprio_set if undef

Recent distros come with includes that have __NR_ioprio_set
already defined, so let's only define it if it is missing.

Helps to avoid this warning:

	warning: "__NR_ioprio_set" redefined

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
  • Loading branch information...
commit a5290b598fdd229d200e28e2fb7b4d85a128c998 1 parent 9ea2633
@kolyshkin kolyshkin authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 include/vzsyscalls.h
View
8 include/vzsyscalls.h
@@ -26,7 +26,9 @@
#define __NR_fairsched_rate 1504
#define __NR_setluid 1506
#define __NR_setublimit 1507
+#ifndef __NR_ioprio_set
#define __NR_ioprio_set 1274
+#endif
#elif __x86_64__
#define __NR_fairsched_cpumask 498
#define __NR_fairsched_vcpus 499
@@ -34,14 +36,18 @@
#define __NR_setublimit 502
#define __NR_fairsched_chwt 506
#define __NR_fairsched_rate 508
+#ifndef __NR_ioprio_set
#define __NR_ioprio_set 251
+#endif
#elif __powerpc__
#define __NR_fairsched_chwt 402
#define __NR_fairsched_rate 404
#define __NR_fairsched_vcpus 405
#define __NR_setluid 411
#define __NR_setublimit 412
+#ifndef __NR_ioprio_set
#define __NR_ioprio_set 273
+#endif
#elif defined(__i386__) || defined(__sparc__)
#define __NR_fairsched_chwt 502
#define __NR_fairsched_rate 504
@@ -49,11 +55,13 @@
#define __NR_fairsched_cpumask 506
#define __NR_setluid 511
#define __NR_setublimit 512
+#ifndef __NR_ioprio_set
#ifdef __sparc__
#define __NR_ioprio_set 196
#else
#define __NR_ioprio_set 289
#endif
+#endif
#else
#error "no syscall for this arch"
#endif
Please sign in to comment.
Something went wrong with that request. Please try again.