summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-05-15 16:30:16 +0000
committerRoy Marples <roy@marples.name>2008-05-15 16:30:16 +0000
commit72bda00bdcb980720a94f662471d6b524f925e16 (patch)
tree0405a23eaa2ec86c8eaa143c4a7efffd45dd623e /common.h
parent8dc6afb7e808c5e24a69fd035914a1a67432a950 (diff)
downloaddhcpcd-72bda00bdcb980720a94f662471d6b524f925e16.tar.xz
Use paths.h when available and ensure that we can disable our glue easily.
Diffstat (limited to 'common.h')
-rw-r--r--common.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/common.h b/common.h
index 90d84fe9..f1105321 100644
--- a/common.h
+++ b/common.h
@@ -40,22 +40,28 @@
# define _unused
#endif
-#define HAVE_STRLCPY
+#ifndef HAVE_STRLCPY
+# define HAVE_STRLCPY 1
+#endif
/* Only GLIBC doesn't support strlcpy */
#ifdef __GLIBC__
-# if ! defined(__UCLIBC__) && ! defined (__dietlibc__)
+# if !defined(__UCLIBC__) && !defined (__dietlibc__)
# undef HAVE_STRLCPY
size_t strlcpy(char *, const char *, size_t);
# endif
#endif
-#define HAVE_SRANDOMDEV
+#ifndef HAVE_SRANDOMDEV
+# define HAVE_SRANDOMDEV 1
+#endif
#if defined(__GLIBC__) || defined(__NetBSD__)
# undef HAVE_SRANDOMDEV
void srandomdev(void);
#endif
-#define HAVE_CLOSEFROM
+#ifndef HAVE_CLOSEFROM
+#define HAVE_CLOSEFROM 1
+#endif
#if defined(__linux__) || defined(__FreeBSD__)
# undef HAVE_CLOSEFROM
int closefrom(int);