[Replicant] [libsamsung-ipc] [PATCH 3/5] include: samsung-ipc.h: fix missing size_t definition

Denis 'GNUtoo' Carikli GNUtoo at cyberdimension.org
Mon Feb 1 18:00:48 UTC 2021


Including samsung-ipc.h in a file without other includes results
in a compilation error:
    .../include/samsung-ipc.h:51:2: error: unknown type name ‘size_t’
        51 |  size_t size;
           |  ^~~~~~
    .../include/samsung-ipc.h:77:7: error: unknown type name ‘size_t’
        77 |       size_t size),
           |       ^~~~~~
    .../include/samsung-ipc.h:26:1: note: ‘size_t’ is defined in header
                                   ‘<stddef.h>’;
				   did you forget to ‘#include <stddef.h>’?
        25 | #include <sys/time.h>
       +++ |+#include <stddef.h>
        26 |

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at cyberdimension.org>
---
 include/samsung-ipc.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/samsung-ipc.h b/include/samsung-ipc.h
index 3983ea5..ea2c2c9 100644
--- a/include/samsung-ipc.h
+++ b/include/samsung-ipc.h
@@ -22,6 +22,8 @@
 #ifndef __SAMSUNG_IPC_H__
 #define __SAMSUNG_IPC_H__
 
+#include <stddef.h>
+
 #include <sys/time.h>
 
 /*
-- 
2.30.0



More information about the Replicant mailing list