summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-05 18:05:38 +0000
committerRoy Marples <roy@marples.name>2007-04-05 18:05:38 +0000
commit3c7fb0d496e3d10bfea45d70e62c3f30694ccec5 (patch)
tree6d4bb5c925d4585f5afc099635632d6911c3cfde /common.h
parent5773b3551c95b8a3d47e6a12a0a8eefebd46b9e2 (diff)
downloaddhcpcd-3c7fb0d496e3d10bfea45d70e62c3f30694ccec5.tar.xz
Use libc strlcpy for uclibc and dietlibc
Diffstat (limited to 'common.h')
-rw-r--r--common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common.h b/common.h
index 9b1eefef..c4e16246 100644
--- a/common.h
+++ b/common.h
@@ -22,8 +22,11 @@
#ifndef COMMON_H
#define COMMON_H
+/* Only GLIBC doesn't support strlcpy */
#ifdef __GLIBC__
+# if ! defined(__UCLIBC__) && ! defined (__dietlibc__)
size_t strlcpy (char *dst, const char *src, size_t size);
+# endif
#endif
long uptime (void);