aboutsummaryrefslogtreecommitdiff
path: root/src/helper/list.h
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2024-03-09 18:12:36 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2024-03-24 13:41:17 +0000
commitc02cf9404dc9dba2a6bc60c4db65c0287168a338 (patch)
treedad1d9c6d1bf8e0ee63fc207d1aeb7c852e8053e /src/helper/list.h
parenta213afad09e50402be8d02298f48757ff4e2e1cf (diff)
downloadriscv-openocd-c02cf9404dc9dba2a6bc60c4db65c0287168a338.zip
riscv-openocd-c02cf9404dc9dba2a6bc60c4db65c0287168a338.tar.gz
riscv-openocd-c02cf9404dc9dba2a6bc60c4db65c0287168a338.tar.bz2
helper/list: include the correct header file
The file 'list.h', copied from FreeBSD, does not depend from any OpenOCD specific include file, but only needs 'stddef.h' for the type 'size_t'. Let 'list.h' to include the correct header file, then fix the now broken dependencies in the other files that were incorrectly relying on 'list.h' to include 'helper/types.h' Change-Id: Idd31b5bf607e226cac44ef41b2aa335ae4dbf519 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8173 Tested-by: jenkins
Diffstat (limited to 'src/helper/list.h')
-rw-r--r--src/helper/list.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/list.h b/src/helper/list.h
index eb8858e..47290c2 100644
--- a/src/helper/list.h
+++ b/src/helper/list.h
@@ -35,7 +35,7 @@
/* begin OpenOCD changes */
-#include <helper/types.h>
+#include <stddef.h>
struct list_head {
struct list_head *next;