-#ifdef sun
-#ifdef __svr4__ /* SunOS 5.x */
-#include <sys/kmem.h>
-#define ALLOCATE(n) kmem_alloc((n), KM_NOSLEEP)
+#ifdef __svr4__ /* SVR4, including SunOS 5.x */
+# include <sys/kmem.h>
+# define ALLOCATE(n) kmem_alloc((n), KM_NOSLEEP)
+# define FREE(p, n) kmem_free((p), (n))