summary refs log tree commit diff
path: root/sysdeps/am29k
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/am29k')
-rw-r--r--sysdeps/am29k/ffs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/am29k/ffs.c b/sysdeps/am29k/ffs.c
index fe656e1697..bccec883df 100644
--- a/sysdeps/am29k/ffs.c
+++ b/sysdeps/am29k/ffs.c
@@ -26,7 +26,7 @@
 #ifdef	__GNUC__
 
 int
-ffs (x)
+__ffs (x)
      int x;
 {
   int cnt;
@@ -35,6 +35,7 @@ ffs (x)
 
   return 32 - cnt;
 }
+weak_alias (__ffs, ffs)
 
 #else
 #include <sysdeps/generic/ffs.c>