diff --git a/dtool/Config.FreeBSD.pp b/dtool/Config.FreeBSD.pp index db0559c4af..6d8bafc1ca 100644 --- a/dtool/Config.FreeBSD.pp +++ b/dtool/Config.FreeBSD.pp @@ -19,6 +19,8 @@ // to a subsequent version of Panda. // ******************************************************************* +#define IS_FREEBSD 1 + // What additional flags should we pass to interrogate? #define SYSTEM_IGATE_FLAGS -D__i386__ -D__const=const -D__LITTLE_ENDIAN__ -D__inline__=inline -D__GNUC__ diff --git a/dtool/LocalSetup.pp b/dtool/LocalSetup.pp index 06e5be5d7a..6c3685bfae 100644 --- a/dtool/LocalSetup.pp +++ b/dtool/LocalSetup.pp @@ -600,6 +600,7 @@ $[cdefine USE_STL_ALLOCATOR] /* Platform-identifying defines. */ $[cdefine IS_OSX] $[cdefine IS_LINUX] +$[cdefine IS_FREEBSD] #end dtool_config.h diff --git a/panda/src/nativenet/socket_portable.h b/panda/src/nativenet/socket_portable.h index 62f88320ba..49fd8b9b20 100755 --- a/panda/src/nativenet/socket_portable.h +++ b/panda/src/nativenet/socket_portable.h @@ -244,7 +244,7 @@ const int LOCAL_CONNECT_BLOCKING = EINPROGRESS; * LINUX and FreeBSD STUFF ************************************************************************/ -#elif defined(IS_LINUX) || defined(IS_OSX) || defined(FreeBSD) +#elif defined(IS_LINUX) || defined(IS_OSX) || defined(IS_FREEBSD) #include #include