This is an automated email from Gerrit.

"Antonio Borneo <borneo.anto...@gmail.com>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/8173

-- gerrit

commit 7fc2abf391cf8697be660ba80b2b8825cd1ccc26
Author: Antonio Borneo <borneo.anto...@gmail.com>
Date:   Sat Mar 9 18:12:36 2024 +0100

    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.anto...@gmail.com>

diff --git a/src/helper/binarybuffer.h b/src/helper/binarybuffer.h
index a8a5ef8f3f..3446296817 100644
--- a/src/helper/binarybuffer.h
+++ b/src/helper/binarybuffer.h
@@ -11,7 +11,8 @@
 #ifndef OPENOCD_HELPER_BINARYBUFFER_H
 #define OPENOCD_HELPER_BINARYBUFFER_H
 
-#include "list.h"
+#include <helper/list.h>
+#include <helper/types.h>
 
 /** @file
  * Support functions to access arbitrary bits in a byte array
diff --git a/src/helper/list.h b/src/helper/list.h
index eb8858e74b..47290c2602 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;
diff --git a/src/target/target.h b/src/target/target.h
index 1713448ce8..d5c0e0e8c7 100644
--- a/src/target/target.h
+++ b/src/target/target.h
@@ -23,6 +23,7 @@
 #include <helper/list.h>
 #include "helper/replacements.h"
 #include "helper/system.h"
+#include <helper/types.h>
 #include <jim.h>
 
 struct reg;

-- 

Reply via email to