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:
Axel Dörfler
2006-02-03 12:24:15 +00:00
parent 40b8343312
commit 9f8734ebea
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -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);
+2 -1
View File
@@ -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 ] ;