I noticed after upgrading to Yosemite that none of my upgrades in homebrew would work anymore.

I noticed that it was a problem in general with compiling any kind of C code.

The error I get is:

In file included from /usr/include/stdio.h:75:
 /usr/include/sys/stdio.h:39:52: error: expected function body after     function declarator
 int     renameat(int, const char *, int, const char *) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
 /usr/local/include/Availability.h:159:50: note: expanded from macro '__OSX_AVAILABLE_STARTING'
 <scratch space>:61:1: note: expanded from here

I get this with every C code I try.

I updated XCode to 6.2, and the command line tools as well.

The strange thing is, this is on my mac mini, but my MacBook Pro does not have this issue at all.

Any hints/ideas?

  • What compiler are you trying to use? Can you not compile anything, even in Terminal, or just from XCode? – agentroadkill Mar 16 '15 at 21:39
  • @agentroadkill : yes, from the Terminal, should've mentioned. – Wim Van Dijck Mar 16 '15 at 21:44

You must log in to answer this question.

Browse other questions tagged .