Skip to content

Commit

Permalink
gdb_packet: add missing <string.h> include
Browse files Browse the repository at this point in the history
gdb_packet.h now calls `strlen()`, but does not have the include for it.
This causes build failures on systems where warnings are treated as
errors.

Add `#include <string.h>` to `gdb_packet.h` to fix this warning.

Signed-off-by: Sean Cross <sean@xobs.io>
  • Loading branch information
xobs committed Dec 15, 2024
1 parent 8bcdc48 commit 90d23db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/include/gdb_packet.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <stddef.h>
#include <stdarg.h>
#include <stdbool.h>
#include <string.h>

/* Allow override in other platforms if needed */
#ifndef GDB_PACKET_BUFFER_SIZE
Expand Down

0 comments on commit 90d23db

Please sign in to comment.