Ubuntu – Where’s the /usr/include/sys directory

cgcc

I recently upgraded from Kubuntu 12.04 to 13.04, a complete reinstall.

Using gcc 4.7.3. I compiled some programs to discover there is no /usr/include/sys directory. That is, types.h, stat.h, etc, are absent. They exist in the include/linux directory but not include/sys.

What's going on?

If you use Ubuntu on 64-bit (I can't text exactly right now on a 32-bit system), then the directory from the question is:

/usr/include/x86_64-linux-gnu/sys


Now, having this information, you can create symbolic links to those files if you really need them at that location (/usr/include/sys) using this on a terminal:

sudo ln -s /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/sys/types.h
sudo ln -s /usr/include/x86_64-linux-gnu/sys/stat.h /usr/include/sys/stat.h

# ...etc