aboutsummaryrefslogtreecommitdiff
path: root/src/rc.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-07-10 11:42:56 +0000
committerRoy Marples <roy@marples.name>2007-07-10 11:42:56 +0000
commit1cda2a2036bce068a01b6724d89c63c7f51cb7a8 (patch)
tree3e97219c023460d958a02e0ee18446dcb07d5705 /src/rc.h
parentae160bf293959088adb874c1585567ac04ea90b9 (diff)
We no longer care about numerical runlevels, #184733.
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>