[rtems-libbsd commit] DISPATCH(3): Assume static linking

Sebastian Huber sebh at rtems.org
Wed Dec 4 12:37:35 UTC 2013


Module:    rtems-libbsd
Branch:    master
Commit:    a531ba43ea37c04c1dc474f8d21141508e67e892
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=a531ba43ea37c04c1dc474f8d21141508e67e892

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Nov 15 15:12:34 2013 +0100

DISPATCH(3): Assume static linking

---

 freebsd/lib/libc/net/nsdispatch.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/freebsd/lib/libc/net/nsdispatch.c b/freebsd/lib/libc/net/nsdispatch.c
index 8caafdc..87bd78a 100644
--- a/freebsd/lib/libc/net/nsdispatch.c
+++ b/freebsd/lib/libc/net/nsdispatch.c
@@ -109,8 +109,12 @@ static	pthread_rwlock_t	nss_lock = PTHREAD_RWLOCK_INITIALIZER;
 /*
  * Runtime determination of whether we are dynamically linked or not.
  */
+#ifndef __rtems__
 extern	int		_DYNAMIC __attribute__ ((weak));
 #define	is_dynamic()	(&_DYNAMIC != NULL)
+#else /* __rtems__ */
+#define	is_dynamic()	0
+#endif /* __rtems__ */
 
 /*
  * default sourcelist: `files'




More information about the vc mailing list