File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed
Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ bmscan : $(OBJLIST_BMSCAN)
211211 $(LNK) $(LFLAGS) -o$@ $^ -lbsd -lpthread
212212
213213elf-postlink : $(OBJLIST_POSTLINK)
214- $(LNK) $(LFLAGS) -o$@ $^
214+ $(LNK) $(LFLAGS) -o$@ $^ -lbsd
215215
216216tracegen : $(OBJLIST_TRACEGEN)
217217 $(LNK) $(LFLAGS) -o$@ $^ -lbsd
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ OBJLIST_BMTRACE = bmtrace.o bmcommon.o bmp-scan.o bmp-script.o bmp-support.o \
9292
9393OBJLIST_BMSCAN = bmscan.o bmp-scan.o tcpip.o
9494
95- OBJLIST_POSTLINK = elf-postlink.o elf.o
95+ OBJLIST_POSTLINK = elf-postlink.o elf.o strlcpy.o
9696
9797OBJLIST_TRACEGEN = tracegen.o parsetsdl.o strlcpy.o
9898
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ OBJLIST_BMTRACE = bmtrace.obj bmcommon.obj bmp-scan.obj bmp-script.obj bmp-suppo
8888
8989OBJLIST_BMSCAN = bmscan.obj bmp-scan.obj tcpip.obj
9090
91- OBJLIST_POSTLINK = elf-postlink.obj elf.obj
91+ OBJLIST_POSTLINK = elf-postlink.obj elf.obj strlcpy.obj
9292
9393OBJLIST_TRACEGEN = tracegen.obj parsetsdl.obj strlcpy.obj
9494
Original file line number Diff line number Diff line change 2525#include <stdlib.h>
2626#include <string.h>
2727#include "elf.h"
28+ #if defined WIN32 || defined _WIN32
29+ #if defined __MINGW32__ || defined __MINGW64__ || defined _MSC_VER
30+ #include "strlcpy.h"
31+ #endif
32+ #elif defined __linux__
33+ #include <bsd/string.h>
34+ #endif
2835
2936#if defined __GNUC__
3037 #define PACKED __attribute__((packed))
You can’t perform that action at this time.
0 commit comments