Skip to contentSkip to conversation

librtdk: Mark __wrap_clock_gettime as weak symbol

GIT PULL Jan Kiszka 1 participant 1 message Oct 7, 2009

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

The following changes since commit cd669afa1b220242c157de74b9e3cd86c37b8433:
Philippe Gerum (1):

        x86: upgrade I-pipe support to 2.6.30.8-x86-2.4-06, 2.6.31.1-x86-2.4-06

are available in the git repository at:

git://git.xenomai.org/xenomai-jki.git for-upstream

Jan Kiszka (1):
librtdk: Mark __wrap_clock_gettime as weak symbol

 src/rtdk/assert_context.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

---

Quoted 1 line

From 4a2cb7b817cefc16a3840a2406f4f7031bdfd534 Mon Sep 17 00:00:00 2001

From: Jan Kiszka <[email protected]>
Date: Wed, 7 Oct 2009 13:53:27 +0200
Subject: [PATCH] librtdk: Mark __wrap_clock_gettime as weak symbol

This ensures that, in case both librtdk and libpthread_rt are used, the POSIX skin will be able to provide its Xenomai version of clock_gettime.

---
 src/rtdk/assert_context.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
src/rtdk/assert_context.c +1 -0
index 2176db3..f67bcd8 100644
@@ -66,6 +66,7 @@ int __wrap_gettimeofday(struct timeval *tv, struct timezone *tz)
 	return __real_gettimeofday(tv, tz);
 }
 
+__attribute__ ((weak))
 int __wrap_clock_gettime(clockid_t clk_id, struct timespec *tp)
 {
 	assert_nrt();
Signature · 1 line
1.6.0.2