diff --git a/src/svalue.h b/src/svalue.h
index 88298bdf68efea7ca6471a001cfb4219f68f842c..d18c4e7591248e5e93a7bd5a8c8c3cd8c3c074c9 100644
--- a/src/svalue.h
+++ b/src/svalue.h
@@ -137,6 +137,9 @@ struct svalue
 
 #define FUNCTION_BUILTIN USHRT_MAX
 
+/* Pike 0.6 compatibility... */
+#define add_ref(X)	((X)->refs++)
+
 #define is_gt(a,b) is_lt(b,a)
 #define IS_ZERO(X) ((X)->type==T_INT?(X)->u.integer==0:(1<<(X)->type)&(BIT_OBJECT|BIT_FUNCTION)?!svalue_is_true(X):0)