CodeSamples: Add api-pthreads/api-gcc.h in depends.mk
PATCH 1/1 CodeSamples: Add api-pthreads/api-gcc.h in depends.mk
From ce0f6785bd5e059a29a3d647287bcf93648f66f8 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Sun, 28 Oct 2018 08:02:09 +0900
Subject: [PATCH] CodeSamples: Add api-pthreads/api-gcc.h in depends.mk
While testing change in cmpxchg() commited as cda0234ccd2c ("atomic_cmpxchg: Handle spurious failure of __atomic_compare_exchange_n"), api.h was not updated automatically by "make". Fix this by adding the dependency (api-pthreads/api-gcc.h -> api.h)
--- CodeSamples/depends.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
CodeSamples/depends.mk +3 -1
@@ -26,7 +26,9 @@ subdir_ub := endif api_depend_common := $(top)/linux/common.h \ - $(top)/api-pthreads/api-pthreads.h + $(top)/api-pthreads/api-pthreads.h \ + $(top)/api-pthreads/api-gcc.h + ifeq ($(target),x86) api_depend := $(top)/arch-x86/arch-x86.h arch_depend := $(top)/arch-x86/Makefile.arch
Signature · 1 line
2.7.4
Quoted 5 lines · Akira Yokosawa
Quoted 1 line
From
ce0f6785bd5e059a29a3d647287bcf93648f66f8Mon Sep 17 00:00:00 2001From: Akira Yokosawa <[email protected]>
Date: Sun, 28 Oct 2018 08:02:09 +0900
Subject: [PATCH] CodeSamples: Addapi-pthreads/api-gcc.hin depends.mk
Quoted 7 lines
While testing change in
cmpxchg()commited ascda0234ccd2c("atomic_cmpxchg: Handle spurious failure of__atomic_compare_exchange_n"),api.hwas not updated automatically by "make". Fix this by adding the dependency (api-pthreads/api-gcc.h->api.h)Signed-off-by Akira Yokosawa <[email protected]>
Applied and pushed, thank you!
Thanx, Paul
Quoted 22 lines
--- CodeSamples/depends.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)CodeSamples/depends.mk +3
-1@@ -26,7 +26,9 @@ subdir_ub := endif api_depend_common := $(top)/linux/common.h \ - $(top)/api-pthreads/api-pthreads.h + $(top)/api-pthreads/api-pthreads.h \ + $(top)/api-pthreads/api-gcc.h + ifeq ($(target),x86) api_depend := $(top)/arch-x86/arch-x86.h arch_depend := $(top)/arch-x86/Makefile.archSignature · 1 line
2.7.4