summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-05 17:31:05 +0000
committerRoy Marples <roy@marples.name>2007-04-05 17:31:05 +0000
commit93573fa302c2d0ae141c8c87c5fd89fc3069b5a8 (patch)
tree61cd5cf09231578095e925c5e41bf21a7d709fde /common.h
parent235ce0896deb6ce04326f8a1514f0b600b7c8dc1 (diff)
downloaddhcpcd-93573fa302c2d0ae141c8c87c5fd89fc3069b5a8.tar.xz
Use strlcpy if available, if not define our own.
Diffstat (limited to 'common.h')
-rw-r--r--common.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/common.h b/common.h
index e788e0bb..9b1eefef 100644
--- a/common.h
+++ b/common.h
@@ -22,7 +22,10 @@
#ifndef COMMON_H
#define COMMON_H
-char *safe_strncpy (char *dst, const char *src, size_t size);
+#ifdef __GLIBC__
+size_t strlcpy (char *dst, const char *src, size_t size);
+#endif
+
long uptime (void);
void *xmalloc (size_t size);