Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 798ed19

Browse files
committed
Mark global variable as extern
Fixes compilation with GCC 10. (multiple definition of cmdline)
1 parent f7cebb7 commit 798ed19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/intercept.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ bool is_overwritable_nop(const struct intercept_disasm_result *ins);
215215

216216
void create_jump(unsigned char opcode, unsigned char *from, void *to);
217217

218-
const char *cmdline;
218+
extern const char *cmdline;
219219

220220
#define PAGE_SIZE ((size_t)0x1000)
221221

0 commit comments

Comments
 (0)