Browse Source

2004-06-09 Paul Jakma <paul@dishone.st>

	* config.h: __attribute__ is a gcc'ism
paul 16 years ago
parent
commit
51a8798e8d
2 changed files with 8 additions and 0 deletions
  1. 4 0
      lib/ChangeLog
  2. 4 0
      lib/zebra.h

+ 4 - 0
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

+ 4 - 0
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)