libftdi: add explicit dependencies for host variant
[buildroot-gz.git] / package / openpowerlink / 0006-PCIe-Fix-name-of-sched_priority-element.patch
blob8e622b2d0a10e982f9b559fee5bd3ff1c145d075
1 From 98a4d9b805300511ee87596803a02a5a9376b806 Mon Sep 17 00:00:00 2001
2 From: Romain Naour <romain.naour@gmail.com>
3 Date: Sat, 4 Jun 2016 11:47:41 +0200
4 Subject: [PATCH] PCIe: Fix name of sched_priority element
6 commit 6212747994ff00c06d7285777ea194e725e62011 and
7 3d18c96d3f3be40fc87effba1c982d9607f33712 already removed
8 __sched_priority since it's non POSIX compliant.
10 Upstream status: Pending
11 https://github.com/OpenAutomationTechnologies/openPOWERLINK_V2/pull/124
13 Signed-off-by: Romain Naour <romain.naour@gmail.com>
14 ---
15 stack/src/user/event/eventucal-linuxpcie.c | 8 ++++----
16 1 file changed, 4 insertions(+), 4 deletions(-)
18 diff --git a/stack/src/user/event/eventucal-linuxpcie.c b/stack/src/user/event/eventucal-linuxpcie.c
19 index 1eceb8a..b287d5c 100644
20 --- a/stack/src/user/event/eventucal-linuxpcie.c
21 +++ b/stack/src/user/event/eventucal-linuxpcie.c
22 @@ -162,11 +162,11 @@ tOplkError eventucal_init(void)
23 if (pthread_create(&instance_l.kernelEventThreadId, NULL, k2uEventFetchThread, NULL) != 0)
24 goto Exit;
26 - schedParam.__sched_priority = KERNEL_EVENT_FETCH_THREAD_PRIORITY;
27 + schedParam.sched_priority = KERNEL_EVENT_FETCH_THREAD_PRIORITY;
28 if (pthread_setschedparam(instance_l.kernelEventThreadId, SCHED_FIFO, &schedParam) != 0)
30 DEBUG_LVL_ERROR_TRACE("%s(): couldn't set K2U thread scheduling parameters! %d\n",
31 - __func__, schedParam.__sched_priority);
32 + __func__, schedParam.sched_priority);
35 #if (defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 12)
36 @@ -177,11 +177,11 @@ tOplkError eventucal_init(void)
37 if (pthread_create(&instance_l.processEventThreadId, NULL, eventProcessThread, NULL) != 0)
38 goto Exit;
40 - schedParam.__sched_priority = EVENT_PROCESS_THREAD_PRIORITY;
41 + schedParam.sched_priority = EVENT_PROCESS_THREAD_PRIORITY;
42 if (pthread_setschedparam(instance_l.processEventThreadId, SCHED_FIFO, &schedParam) != 0)
44 DEBUG_LVL_ERROR_TRACE("%s(): couldn't set event process thread scheduling parameters! %d\n",
45 - __func__, schedParam.__sched_priority);
46 + __func__, schedParam.sched_priority);
49 #if (defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 12)
50 --
51 2.5.5