<sys/random.h> requires <sys/types.h> on OS/X
On recent OS/X environments, playlist.c fails to compile because of problems with including <sys/random.h>
before <sys/types.h>
:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/random.h:37:30: error: unknown type name 'size_t'; did you mean 'time_t'?
int getentropy(void* buffer, size_t size);
I'm not the first to hit this problem; it looks like MacPorts patched it locally about 9 months ago: https://raw.githubusercontent.com/macports/macports-ports/fa36881/audio/ezstream/files/sys-types.patch
I can verify that their fix works on my MacOS 11 environment.