FreeBSD doesn't have strnlen(), and therefore couldn't compile our strlcat.c.
Sorry, that was the problem actually reported by Alexander Deynichenko... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16216 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -16,6 +16,10 @@ extern "C" {
|
||||
extern size_t strlcpy(char *dest, const char *source, size_t length);
|
||||
extern size_t strlcat(char *dest, const char *source, size_t length);
|
||||
|
||||
#ifdef HAIKU_HOST_PLATFORM_FREEBSD
|
||||
extern size_t strnlen(const char *string, size_t length);
|
||||
#endif
|
||||
|
||||
// BeOS only
|
||||
extern ssize_t read_pos(int fd, off_t pos, void *buffer, size_t count);
|
||||
extern ssize_t write_pos(int fd, off_t pos, const void *buffer,size_t count);
|
||||
|
||||
@@ -32,10 +32,11 @@ BuildPlatformSharedLibrary libroot_build.so :
|
||||
|
||||
strlcpy.c
|
||||
strlcat.c
|
||||
strnlen.c
|
||||
|
||||
:
|
||||
$(HOST_LIBSTDC++)
|
||||
;
|
||||
|
||||
SEARCH on [ FGristFiles strlcat.c strlcpy.c ]
|
||||
SEARCH on [ FGristFiles strlcat.c strlcpy.c strnlen.c ]
|
||||
= [ FDirName $(HAIKU_TOP) src system libroot posix string ] ;
|
||||
|
||||
Reference in New Issue
Block a user