aboutsummaryrefslogtreecommitdiff
path: root/src/rc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc.h')
-rw-r--r--src/rc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rc.h b/src/rc.h
index 9d9b4866..125bb1f8 100644
--- a/src/rc.h
+++ b/src/rc.h
@@ -8,8 +8,13 @@
#ifndef __RC_H__
#define __RC_H__
+#define SENTINEL
#ifdef __GNUC__
-# define SENTINEL __attribute__ ((__sentinel__))
+# define GCC_VERSION (__GNUC__ * 1000 + __GNUC__MINOR )
+# if (GCC_VERSION >= 3005)
+# undef SENTINEL
+# define SENTINEL __attribute__ ((__sentinel__))
+# endif
#endif
#include <sys/types.h>