Fatal error: sys/cdefs.h: No such file or directory

Occurs at ubuntu16.04(64-bit machine) gcc-m32-o main mian.c

Solutions are as follows:

sudo apt-get purge libc6-dev
sudo apt-get install libc6-dev
sudo apt-get install libc6-dev-i386

Read More: