Menu

#7 Does not compile on OSX due to use of O_RSYNC

default
open
nobody
None
5
2014-03-26
2014-03-25
No

Mac OSX unfortunately does not support the O_RSYNC flag so safecopy does not compile on it; the good news is that this can be fixed by using O_SYNC instead of O_RSYNC on that platform. I'd submit a patch myself but I am not very experienced with autotools.

Related

Bugs: #7

Discussion

  • Eric Price

    Eric Price - 2014-03-26

    Can you check if the following code fixes it (to be added at the top of safecopy.c near line 50

    #ifndef O_RSYNC
        #define O_RSYNC O_SYNC
    #endif
    
     
    • Gregory Crosswhite

      Yep! That makes the source compile, and a test of safecopy on OSX and
      Linux for the same CD resulted in the same image. Thanks!

      On 3/26/14, 2:41 PM, Eric Price wrote:

      Can you check if the following code fixes it (to be added at the top
      of safecopy.c near line 50

      ifndef O_RSYNC

       #define O_RSYNC O_SYNC
      

      endif


      [bugs:#7] http://sourceforge.net/p/safecopy/bugs/7/ Does not
      compile on OSX due to use of O_RSYNC

      Status: open
      Group: default
      Created: Tue Mar 25, 2014 09:06 PM UTC by Gregory Crosswhite
      Last Updated: Tue Mar 25, 2014 09:06 PM UTC
      Owner: nobody

      Mac OSX unfortunately does not support the O_RSYNC flag so safecopy
      does not compile on it; the good news is that this can be fixed by
      using O_SYNC instead of O_RSYNC on that platform. I'd submit a patch
      myself but I am not very experienced with autotools.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/safecopy/bugs/7/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #7


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.