diff options
| author | Roy Marples <roy@marples.name> | 2007-04-05 17:31:05 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2007-04-05 17:31:05 +0000 |
| commit | 93573fa302c2d0ae141c8c87c5fd89fc3069b5a8 (patch) | |
| tree | 61cd5cf09231578095e925c5e41bf21a7d709fde /common.h | |
| parent | 235ce0896deb6ce04326f8a1514f0b600b7c8dc1 (diff) | |
| download | dhcpcd-93573fa302c2d0ae141c8c87c5fd89fc3069b5a8.tar.xz | |
Use strlcpy if available, if not define our own.
Diffstat (limited to 'common.h')
| -rw-r--r-- | common.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |
