More klibc fixes from Maximilian Attems, strlcpy() this time.
authorRob Landley <rob@landley.net>
Wed, 15 Aug 2007 17:50:44 +0000 (12:50 -0500)
committerRob Landley <rob@landley.net>
Wed, 15 Aug 2007 17:50:44 +0000 (12:50 -0500)
lib/lib.c
lib/lib.h

index aca70c4..64c8569 100644 (file)
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -11,7 +11,7 @@
 
 #include "toys.h"
 
-#ifndef __UCLIBC__
+#if !defined(__UCLIBC__) && !defined(__KLIBC__)
 
 // uClibc has this, and if we define our own it conflicts.
 
index baa5268..37a94a5 100644 (file)
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -31,7 +31,7 @@ struct dirtree {
 void get_optflags(void);
 
 // functions.c
-#ifndef __UCLIBC__
+#if !defined(__UCLIBC__) && !defined(__KLIBC__)
 void strlcpy(char *dest, char *src, size_t size);
 #endif