Commit c9dd18f 1 parent 950691f commit c9dd18f Copy full SHA for c9dd18f
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ $(shell mkdir -p $(BINDIR))
72
72
# TODO proper configure script / other build system?
73
73
ifeq (,$(wildcard $(BINDIR ) /.have_strlcpy) )
74
74
$(shell echo -e '# include <cstring>\nint main(){char a[4]{}; char b[4]{}; strlcpy(&a[0], &b[0], sizeof(a)); return 0;}' | \
75
- $(CXX) -x c++ - -o $(BINDIR)/.have_strlcpy 2>/dev/null || { echo -e '#!/bin/sh\nexit 1' > $(BINDIR)/.have_strlcpy ; chmod +x $(BINDIR)/.have_strlcpy; } )
75
+ $(CXX) -x c++ - -o $(BINDIR)/.have_strlcpy 2>/dev/null || ( echo -e '#!/bin/sh\nexit 1' > $(BINDIR)/.have_strlcpy ; chmod +x $(BINDIR)/.have_strlcpy; ) )
76
76
endif
77
77
78
78
$(shell $(BINDIR)/.have_strlcpy)
82
82
83
83
ifeq (,$(wildcard $(BINDIR ) /.have_strlcat) )
84
84
$(shell echo -e '# include <cstring>\nint main(){char a[4]{}; strlcat(&a[0], "test", sizeof(a)); return 0;}' | \
85
- $(CXX) -x c++ - -o $(BINDIR)/.have_strlcat 2>/dev/null || { echo -e '#!/bin/sh\nexit 1' > $(BINDIR)/.have_strlcat ; chmod +x $(BINDIR)/.have_strlcat; } )
85
+ $(CXX) -x c++ - -o $(BINDIR)/.have_strlcat 2>/dev/null || ( echo -e '#!/bin/sh\nexit 1' > $(BINDIR)/.have_strlcat ; chmod +x $(BINDIR)/.have_strlcat; ) )
86
86
endif
87
87
88
88
$(shell $(BINDIR)/.have_strlcat)
You can’t perform that action at this time.
0 commit comments