retval = (GISTENTRY *) palloc(sizeof(GISTENTRY));
gistentryinit(*retval, PointerGetDatum(res),
entry->rel, entry->page,
- entry->offset, res->len, FALSE);
+ entry->offset,
+#ifndef PG_MODULE_MAGIC
+ res->len,
+#endif
+ FALSE);
} else if ( !ISALLTRUE(DatumGetPointer(entry->key)) ) {
int4 i;
GISTTYPE *res;
retval = (GISTENTRY *) palloc(sizeof(GISTENTRY));
gistentryinit(*retval, PointerGetDatum(res),
entry->rel, entry->page,
- entry->offset, res->len, FALSE);
+ entry->offset,
+#ifndef PG_MODULE_MAGIC
+ res->len,
+#endif
+ FALSE);
}
PG_RETURN_POINTER(retval);