about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/generic/dl-cache.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e35cf64d9d..592f5252b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
 
+	* sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
+	inline to avoid defining it in every file which includes this header.
+
 	* elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
 	defining DONT_USE_BOOTSTRAP_MAP.
 
diff --git a/sysdeps/generic/dl-cache.h b/sysdeps/generic/dl-cache.h
index d02c1739c1..93bf0be6f4 100644
--- a/sysdeps/generic/dl-cache.h
+++ b/sysdeps/generic/dl-cache.h
@@ -97,7 +97,7 @@ struct cache_file_new
 (((addr) + __alignof__ (struct cache_file_new) -1)	\
  & (~(__alignof__ (struct cache_file_new) - 1)))
 
-static int
+static inline int
 __attribute__ ((__unused__))
 _dl_cache_libcmp (const char *p1, const char *p2)
 {