summary refs log tree commit diff
path: root/sysdeps/powerpc/ffs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/powerpc/ffs.c')
-rw-r--r--sysdeps/powerpc/ffs.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sysdeps/powerpc/ffs.c b/sysdeps/powerpc/ffs.c
index fb1b2f4592..01d5f743a0 100644
--- a/sysdeps/powerpc/ffs.c
+++ b/sysdeps/powerpc/ffs.c
@@ -18,8 +18,13 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#define ffsl __something_else
 #include <string.h>
 
+#undef	ffs
+
+#ifdef 	__GNUC__
+
 int
 __ffs (int x)
 {
@@ -29,4 +34,9 @@ __ffs (int x)
   return 32 - cnt;
 }
 weak_alias (__ffs, ffs)
-weak_alais (__ffs, ffsl)
+#undef ffsl
+weak_alias (__ffs, ffsl)
+
+#else
+#include <sysdeps/generic/ffs.c>
+#endif