forked from enlightenment/efl
Fix unused var warning when not building on linux.
This commit is contained in:
parent
6f1f49b4f6
commit
3ab1b8afd8
|
@ -49,7 +49,7 @@ eina_sched_prio_drop(void)
|
||||||
{
|
{
|
||||||
#ifdef EFL_HAVE_POSIX_THREADS
|
#ifdef EFL_HAVE_POSIX_THREADS
|
||||||
struct sched_param param;
|
struct sched_param param;
|
||||||
int pol, prio, ret;
|
int pol, ret;
|
||||||
pthread_t pthread_id;
|
pthread_t pthread_id;
|
||||||
|
|
||||||
pthread_id = pthread_self();
|
pthread_id = pthread_self();
|
||||||
|
@ -76,6 +76,7 @@ eina_sched_prio_drop(void)
|
||||||
# ifdef __linux__
|
# ifdef __linux__
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
int prio;
|
||||||
errno = 0;
|
errno = 0;
|
||||||
prio = getpriority(PRIO_PROCESS, 0);
|
prio = getpriority(PRIO_PROCESS, 0);
|
||||||
if (errno == 0)
|
if (errno == 0)
|
||||||
|
|
Loading…
Reference in New Issue