Browse Source

IS_FREEBSD

David Rose 17 years ago
parent
commit
2820bca34b
3 changed files with 4 additions and 1 deletions
  1. 2 0
      dtool/Config.FreeBSD.pp
  2. 1 0
      dtool/LocalSetup.pp
  3. 1 1
      panda/src/nativenet/socket_portable.h

+ 2 - 0
dtool/Config.FreeBSD.pp

@@ -19,6 +19,8 @@
 // to a subsequent version of Panda.
 // to a subsequent version of Panda.
 // *******************************************************************
 // *******************************************************************
 
 
+#define IS_FREEBSD 1
+
 // What additional flags should we pass to interrogate?
 // 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__
 #define SYSTEM_IGATE_FLAGS -D__i386__ -D__const=const -D__LITTLE_ENDIAN__ -D__inline__=inline -D__GNUC__
 
 

+ 1 - 0
dtool/LocalSetup.pp

@@ -600,6 +600,7 @@ $[cdefine USE_STL_ALLOCATOR]
 /* Platform-identifying defines. */
 /* Platform-identifying defines. */
 $[cdefine IS_OSX]
 $[cdefine IS_OSX]
 $[cdefine IS_LINUX]
 $[cdefine IS_LINUX]
+$[cdefine IS_FREEBSD]
 
 
 
 
 #end dtool_config.h
 #end dtool_config.h

+ 1 - 1
panda/src/nativenet/socket_portable.h

@@ -244,7 +244,7 @@ const int LOCAL_CONNECT_BLOCKING = EINPROGRESS;
 * LINUX and FreeBSD STUFF
 * LINUX and FreeBSD STUFF
 ************************************************************************/
 ************************************************************************/
 
 
-#elif defined(IS_LINUX) || defined(IS_OSX) || defined(FreeBSD)
+#elif defined(IS_LINUX) || defined(IS_OSX) || defined(IS_FREEBSD)
 
 
 #include <sys/types.h>
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/time.h>