Skip to contentSkip to conversation

lib: remove sched.h from public headers

PATCH Applied Dmitry Kozlyuk 3 participants 3 messages Aug 28, 2021 – Oct 1, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib: remove sched.h from public headers

Public headers including POSIX-specific <sched.h> were unusable on Windows. These includes were superfluous, remove them.

---
 lib/eal/include/rte_eal.h     | 1 -
 lib/telemetry/rte_telemetry.h | 1 -
 2 files changed, 2 deletions(-)
lib/eal/include/rte_eal.h +0 -1
index eaf6469e50..0c43a0a2c1 100644
@@ -12,7 +12,6 @@
  */
 
 #include <stdint.h>
-#include <sched.h>
 #include <time.h>
 
 #include <rte_config.h>
lib/telemetry/rte_telemetry.h +0 -1
index 8776998b54..1cdc903f38 100644
@@ -3,7 +3,6 @@
  */
 
 #include <stdint.h>
-#include <sched.h>
 
 #include <rte_compat.h>
 
Signature · 1 line
2.29.3
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Dmitry Kozlyuk

Public headers including POSIX-specific <sched.h> were unusable on Windows. These includes were superfluous, remove them.

---

Write a program, include rte_eal.h, link with DPDK library, then hit the issue. Verify the patch works correctly and solve my problem.

#2 lore raw

24/09/2021 00:34, William Tu:

Quoted 5 lines · Dmitry Kozlyuk
Quoted 4 lines

Public headers including POSIX-specific <sched.h> were unusable on Windows. These includes were superfluous, remove them.

Quoted 7 lines
Quoted 2 lines

---

Write a program, include rte_eal.h, link with DPDK library, then hit the issue. Verify the patch works correctly and solve my problem.

Applied, thanks.