[uClibc] [PATCH] resolve UND do_rem in libdl.a

Bradley D. LaRonde brad at laronde.org
Sat Jun 19 01:59:46 UTC 2004


dl-string.h references do_rem, but do_rem is a #define in <arch>/dl-sysdep.h
which is not included by dl-sysdep.h.  This causes a problem in libdl:

    In file included from ../../ldso/include/ldso.h:27, from libdl.c:33:
    ../../ldso/include/dl-string.h: In function `_dl_simple_ltoa':
    ../../ldso/include/dl-string.h:216: warning: implicit declaration of
function `do_rem'

Include dl-sysdep.h in dl-string.h before using do_rem.

--- a/ldso/include/dl-string.h  12 Jun 2004 08:38:38 -0000      1.5
+++ b/ldso/include/dl-string.h  19 Jun 2004 01:55:06 -0000
@@ -1,6 +1,8 @@
 #ifndef _LINUX_STRING_H_
 #define _LINUX_STRING_H_

+#include <dl-sysdep.h> // for do_rem
+
 static size_t _dl_strlen(const char * str);
 static char *_dl_strcat(char *dst, const char *src);
 static char * _dl_strcpy(char * dst,const char *src);





More information about the uClibc mailing list