From 51a8798e8d36dddfdeb6b0bfd01bf32a646e8bb1 Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 9 Jun 2004 10:36:05 +0000 Subject: 2004-06-09 Paul Jakma * config.h: __attribute__ is a gcc'ism --- lib/zebra.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/zebra.h') 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) -- cgit v1.2.1