The comment said that apple uses int and BSD traditionally used long,
but the code was backwards. This fixes apple to be int, and otherwise
long. That should make FreeBSD, which aligns to long, work correctly,
even without using SA_SIZE.
(cherry picked from commit
941789e470199df4f612368f669ecc0fd096fb9a)
/* OS X (Xcode as of 2014-12) is known not to define RT_ROUNDUP */
#ifdef __APPLE__
-#define ROUNDUP_TYPE long
-#else
#define ROUNDUP_TYPE int
+#else
+#define ROUNDUP_TYPE long
#endif
#define ROUNDUP(a) \