Revert "Define bsd source for linux to get prototype gethostname"

This reverts commit 00fb138fa565b2c850ad95892d8229eaca50b758.