Jump to content
  • Advertisement
Sign in to follow this  

FreeBSD Fix

This topic is 3465 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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


        #define AS_MAX_PORTABILITY


    #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


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

Share this post

Link to post
Share on other sites
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.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!