The following error occurred when trying to compile in macOS (OS X):
In file included from oggvorbis.c:6:
./util.h:34:41: error: unknown type name 'mode_t'
bool mkdir_recursive (const char *path, mode_t mode);
^
1 error generated.
By adding the following to the include section in src/util.h this error appears to be solved:
#include <sys/stat.h>
Might need to incorporate this in the source if anyone else has this problem (it could be just macOS).