Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mettle/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ libmettle_la_SOURCES += ringbuf.c
libmettle_la_SOURCES += sha1.c
libmettle_la_SOURCES += tlv.c
libmettle_la_SOURCES += stdapi/stdapi.c
libmettle_la_SOURCES += base_inject.c
Comment on lines 46 to +47
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

base_inject.c is added to libmettle sources unconditionally, but it includes Linux-specific headers/APIs (ptrace, /proc) and will fail to compile on non-Linux targets (e.g., Windows, macOS). Add this source file only under the appropriate host conditional (e.g., HOST_LINUX) and/or compile-guard the implementation behind #ifdef linux.

Suggested change
libmettle_la_SOURCES += stdapi/stdapi.c
libmettle_la_SOURCES += base_inject.c
libmettle_la_SOURCES += stdapi/stdapi.c
if HOST_LINUX
libmettle_la_SOURCES += base_inject.c
endif

Copilot uses AI. Check for mistakes.
if HOST_WIN
libmettle_la_SOURCES += console-unsupported.c
libmettle_la_SOURCES += inet_ntop.c inet_pton.c
Expand Down
Loading
Loading