compile error: unknown type name 'mode_t'

1,095 views
Skip to first unread message

azrie...@gmail.com

unread,
Oct 10, 2016, 6:34:44 AM10/10/16
to Syndicate Wars Port
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).

gael...@gmail.com

unread,
Feb 15, 2017, 4:58:07 PM2/15/17
to Syndicate Wars Port, azrie...@gmail.com
got the same error, and came to the same solution. 

win98...@gmail.com

unread,
Aug 22, 2017, 1:47:32 PM8/22/17
to Syndicate Wars Port, azrie...@gmail.com
thank you, it worked

понедельник, 10 октября 2016 г., 13:34:44 UTC+3 пользователь azrie...@gmail.com написал:
Reply all
Reply to author
Forward
0 new messages