Define INADDR_LOOPBACK in a clean way.

This commit is contained in:
Marcus Sundberg 2000-01-06 17:49:39 +00:00
parent 3dc80e29b7
commit 859cdee6a5

View file

@ -40,11 +40,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#undef model_t #undef model_t
#endif #endif
#ifdef __FreeBSD__ #ifndef INADDR_LOOPBACK
#if !defined (__FreeBSD_version) || (__FreeBSD_version < 300000)
# define INADDR_LOOPBACK (u_int32_t)0x7f000001 # define INADDR_LOOPBACK (u_int32_t)0x7f000001
#endif #endif
#endif
// we need to declare some mouse variables here, because the menu system // we need to declare some mouse variables here, because the menu system
// references them even when on a unix system. // references them even when on a unix system.