diff options
author | Elliott Hughes <enh@google.com> | 2014-01-07 17:48:30 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-01-07 17:48:30 -0800 |
commit | bbb34f9536db8234b0b43bd5333256fa4accc50e (patch) | |
tree | 63d74cc20c81dfac9af8c7f394ad8051337034cc /libc | |
parent | 27a4bb319885f9ed218ebca02a92870582b35fd4 (diff) | |
download | bionic-bbb34f9536db8234b0b43bd5333256fa4accc50e.zip bionic-bbb34f9536db8234b0b43bd5333256fa4accc50e.tar.gz bionic-bbb34f9536db8234b0b43bd5333256fa4accc50e.tar.bz2 |
<sched.h> should offer both __sched_priority and sched_priority.
If glibc hadn't already done things this way round, I'd have
called the field sched_priority and the macro __sched_priority
since that would seem less likely to cause trouble, but glibc
source compatibility is probably more important.
Change-Id: I8a8a477f2aa87cae641069c5c84b4fcab3152a82
Diffstat (limited to 'libc')
-rw-r--r-- | libc/include/sched.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/include/sched.h b/libc/include/sched.h index fba6514..7649e83 100644 --- a/libc/include/sched.h +++ b/libc/include/sched.h @@ -39,8 +39,9 @@ __BEGIN_DECLS #define SCHED_OTHER SCHED_NORMAL struct sched_param { - int sched_priority; + int __sched_priority; }; +#define sched_priority __sched_priority extern int sched_setscheduler(pid_t, int, const struct sched_param*); extern int sched_getscheduler(pid_t); |