Skip to contentSkip to conversation

cyclictest: remove inclusion of unnecessary headers

PATCH In review Marcelo Tosatti 2 participants 2 messages May 30, 2023 – Jun 1, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cyclictest: remove inclusion of unnecessary headers

The following three headers seem to be unnecessary, and do not exist on FreeBSD.

Remove their inclusion.

src/cyclictest/cyclictest.c +0 -3
index 82759d1..7b0f80f 100644
@@ -22,11 +22,8 @@
 #include <time.h>
 #include <errno.h>
 #include <limits.h>
-#include <linux/unistd.h>
 
-#include <sys/prctl.h>
 #include <sys/stat.h>
-#include <sys/sysinfo.h>
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/resource.h>
#1 lore raw
Quoted 16 lines · Marcelo Tosatti

The following three headers seem to be unnecessary, and do not exist on FreeBSD.

Remove their inclusion.

src/cyclictest/cyclictest.c +0 -0
index 82759d1..7b0f80f 100644
@@ -22,11 +22,8 @@
 #include <time.h>

src/cyclictest/cyclictest.c line 29

Quoted 10 lines
src/cyclictest/cyclictest.c +0 -3
 #include <errno.h>
 #include <limits.h>
-#include <linux/unistd.h>
 
-#include <sys/prctl.h>
 #include <sys/stat.h>
-#include <sys/sysinfo.h>
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/resource.h>