Problem with syslog.h in High Sierra
Hi everyone,
Since updating to High Sierra on my MBP 2017, it seems there is a problem with /usr/include/sys/syslog.h.
According to the GNU compiler, the asm declaration should be placed before the attributes declaration which is not the case in syslog.h.
As an example, the following code does not compile with gcc5 on High Sierra.
#include <syslog.h>
int main() {
return 0;
}
It returns :
/usr/include/sys/syslog.h:227:124: error: expected ',' or ';' before '__asm'
void syslog(int, const char *, ...) __printflike(2, 3) __not_tail_called __DARWIN_ALIAS_STARTING(__MAC_10_13, __IPHONE_NA, __DARWIN_EXTSN(syslog));
Any idea on how to solve this issue ?
Thanks.