[PATCH] libs/port: Avoid an ARRAY_SIZE-like macro