Skip to contentSkip to conversation

CodeSamples: Add api-pthreads/api-gcc.h in depends.mk

PATCH In review Akira Yokosawa 2 participants 2 messages Oct 27, 2018 – Oct 28, 2018

lore
Share & tools
lore
#0 lore raw

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
index 31a8daf..a6db993 100644
@@ -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
#1 lore raw
Quoted 5 lines · Akira Yokosawa
Quoted 1 line

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

Quoted 7 lines

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)

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
index 31a8daf..a6db993 100644
@@ -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