- Include endian.h instead of machine/endian.h. - Include byteswap.h instead of sys/bswap.h. - Replace -lossaudio with LIBOSSAUDIO.