From c9dd18f511a6d0cbb4e647a27dfcc595b8e7f8c2 Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Mon, 8 Apr 2024 00:05:50 +0300 Subject: [PATCH] braces --- tests/host/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/host/Makefile b/tests/host/Makefile index e5eb33b3c1..aac9f14bce 100644 --- a/tests/host/Makefile +++ b/tests/host/Makefile @@ -72,7 +72,7 @@ $(shell mkdir -p $(BINDIR)) # TODO proper configure script / other build system? ifeq (,$(wildcard $(BINDIR)/.have_strlcpy)) $(shell echo -e '#include \nint main(){char a[4]{}; char b[4]{}; strlcpy(&a[0], &b[0], sizeof(a)); return 0;}' | \ - $(CXX) -x c++ - -o $(BINDIR)/.have_strlcpy 2>/dev/null || { echo -e '#!/bin/sh\nexit 1' > $(BINDIR)/.have_strlcpy ; chmod +x $(BINDIR)/.have_strlcpy; }) + $(CXX) -x c++ - -o $(BINDIR)/.have_strlcpy 2>/dev/null || ( echo -e '#!/bin/sh\nexit 1' > $(BINDIR)/.have_strlcpy ; chmod +x $(BINDIR)/.have_strlcpy; )) endif $(shell $(BINDIR)/.have_strlcpy) @@ -82,7 +82,7 @@ endif ifeq (,$(wildcard $(BINDIR)/.have_strlcat)) $(shell echo -e '#include \nint main(){char a[4]{}; strlcat(&a[0], "test", sizeof(a)); return 0;}' | \ - $(CXX) -x c++ - -o $(BINDIR)/.have_strlcat 2>/dev/null || { echo -e '#!/bin/sh\nexit 1' > $(BINDIR)/.have_strlcat ; chmod +x $(BINDIR)/.have_strlcat; }) + $(CXX) -x c++ - -o $(BINDIR)/.have_strlcat 2>/dev/null || ( echo -e '#!/bin/sh\nexit 1' > $(BINDIR)/.have_strlcat ; chmod +x $(BINDIR)/.have_strlcat; )) endif $(shell $(BINDIR)/.have_strlcat)