diff options
| author | Roy Marples <roy@marples.name> | 2008-01-09 10:02:28 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-01-09 10:02:28 +0000 |
| commit | 890fe1c5a47f270316fef8b419d8aac587e5cf92 (patch) | |
| tree | 59cc4629c61acea15fe2c4f2e7ea7af2f92cff37 /common.h | |
| parent | a165b0a92af9103e7645120be472310ed397a4b3 (diff) | |
| download | dhcpcd-890fe1c5a47f270316fef8b419d8aac587e5cf92.tar.xz | |
common.h now defines a simple define to create the function in common.c. NetBSD needs srandomdev also.
Diffstat (limited to 'common.h')
| -rw-r--r-- | common.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -33,14 +33,18 @@ #include <stdio.h> #include <string.h> +#define HAVE_STRLCPY /* Only GLIBC doesn't support strlcpy */ #ifdef __GLIBC__ # if ! defined(__UCLIBC__) && ! defined (__dietlibc__) +# undef HAVE_STRLCPY size_t strlcpy (char *dst, const char *src, size_t size); # endif #endif -#ifdef __linux__ +#define HAVE_SRANDOMDEV +#if defined(__linux__) || defined(__NetBSD__) +# undef HAVE_SRANDOMDEV void srandomdev (void); #endif |
