summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorpaul <paul>2004-06-09 10:36:05 +0000
committerpaul <paul>2004-06-09 10:36:05 +0000
commit51a8798e8d36dddfdeb6b0bfd01bf32a646e8bb1 (patch)
treefd1f6e63fc2ee07f7312b5f2409daa6fbe15cc2d /lib
parentca5e516c84cc2d35b6f6cd29f8ba9e835d3b72ba (diff)
2004-06-09 Paul Jakma <paul@dishone.st>
* config.h: __attribute__ is a gcc'ism
Diffstat (limited to 'lib')
-rw-r--r--lib/ChangeLog4
-rw-r--r--lib/zebra.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 05cf2930..3573ac12 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,7 @@
+2004-06-09 Paul Jakma <paul@dishone.st>
+
+ * config.h: __attribute__ is a gcc'ism
+
2004-06-04 Paul Jakma <paul@dishone.st>
* type mismatch fixes
diff --git a/lib/zebra.h b/lib/zebra.h
index 30377fdb..ed3024db 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -215,6 +215,10 @@ typedef int socklen_t;
#endif /* BSDI_NRL */
+#if !defined(__GNUC__) || __GNUC__ < 2 || __GNUC_MINOR__ < 5
+#define __attribute__(x)
+#endif /* !__GNUC__ */
+
/* The definition of struct in_pktinfo is missing in old version of
GLIBC 2.1 (Redhat 6.1). */
#if defined (GNU_LINUX) && ! defined (HAVE_INPKTINFO)