Advertisement

FreeBSD Fix

Started by April 21, 2009 10:03 PM
1 comment, last by WitchLord 15 years, 7 months ago
Currently FreeBSD support is broken because it has no configuration for atomic functions. The same method for Linux works with it:

// Free BSD

#elif __FreeBSD__

    #define AS_BSD

    #if defined(i386) && !defined(__LP64__)

        #define AS_X86

    #else

        #define AS_MAX_PORTABILITY

    #endif

    #define AS_POSIX_THREADS

    #if !( ( (__GNUC__ == 4) && (__GNUC_MINOR__ >= 1) || __GNUC__ > 4) )

        // Only with GCC 4.1 was the atomic instructions available

        #define AS_NO_ATOMIC

    #endif


Then in as_atomic.cpp:

#elif defined(AS_LINUX) || defined(AS_BSD)


I've tested it using PC-BSD which is based on FreeBSD 7.2-pre -Jeremy
Also when I get some free time I still plan to test my program on other BSD based operating systems. When I do I'll post any required changes to add support.
Advertisement
Great. Thanks.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement