Closed irasnyd closed 8 years ago
These two fixes allow me to compile on CentOS 5-7, both 32 and 64 bit versions.
To make sure not to confuse compilers which are not gcc, I decided to use -D_GNU_SOURCE instead of -std=gnu99 to fix the gethostname() error.
-D_GNU_SOURCE
-std=gnu99
gethostname()
Makefile fixes for CentOS
These two fixes allow me to compile on CentOS 5-7, both 32 and 64 bit versions.
To make sure not to confuse compilers which are not gcc, I decided to use
-D_GNU_SOURCE
instead of-std=gnu99
to fix thegethostname()
error.