[uClibc-cvs] dl-string.h

Erik Andersen,,, andersen at uclibc.org
Sat Jun 19 19:54:43 UTC 2004


Update of /var/cvs/uClibc/ldso/include
In directory nail:/tmp/cvs-serv6864/ldso/include

Modified Files:
	dl-string.h 
Log Message:
Bradley D. LaRonde writes:

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.



Index: dl-string.h
===================================================================
RCS file: /var/cvs/uClibc/ldso/include/dl-string.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- dl-string.h	12 Jun 2004 08:38:38 -0000	1.5
+++ dl-string.h	19 Jun 2004 19:54:40 -0000	1.6
@@ -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-cvs mailing list