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.

Posted on Oct 22, 2017 4:58 AM

Reply
3 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Problem with syslog.h in High Sierra

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.