Update collection.c

SmartOS support