summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-09 10:02:28 +0000
committerRoy Marples <roy@marples.name>2008-01-09 10:02:28 +0000
commit890fe1c5a47f270316fef8b419d8aac587e5cf92 (patch)
tree59cc4629c61acea15fe2c4f2e7ea7af2f92cff37 /common.h
parenta165b0a92af9103e7645120be472310ed397a4b3 (diff)
downloaddhcpcd-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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/common.h b/common.h
index b28b6546..ff97e035 100644
--- a/common.h
+++ b/common.h
@@ -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