summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-21 21:52:20 +0000
committerRoy Marples <roy@marples.name>2008-01-21 21:52:20 +0000
commitcb8d2261b8cbe1fe5936ccdc0ad7548d79485267 (patch)
treed650365c39e508967325d68d347067fb5f52635a /common.h
parentdc9be8a47ffa109785d348d92fdc6c915be734c4 (diff)
downloaddhcpcd-cb8d2261b8cbe1fe5936ccdc0ad7548d79485267.tar.xz
Fix compile on Linux where.
Diffstat (limited to 'common.h')
-rw-r--r--common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common.h b/common.h
index 3dbae4b8..61732bb6 100644
--- a/common.h
+++ b/common.h
@@ -33,6 +33,10 @@
#include <stdio.h>
#include <string.h>
+#if __GNUC__ > 2 || defined(__INTEL_COMPILER)
+# define _unused __attribute__((__unused__))
+#endif
+
#define HAVE_STRLCPY
/* Only GLIBC doesn't support strlcpy */
#ifdef __GLIBC__