• Stefan Tauner's avatar
    Fix building for MacOSX · e038e908
    Stefan Tauner authored
    
    - Add a new macro named IS_MACOSX to hwaccess.c and use it to enable iopl().
      This was broken since r1638. This fix does *not* restore the very permissive
      concept where iopl() was activated in an #else branch that was inplace before
      r1638.
    - Make printing the image file's size in flashrom.c platform independent.
    
    Bonus: remove definitions of off64_t and lseek64 which are not necessary
    anymore for about 1000 commits.
    
    Thanks to SJ for reporting the issue and testing the solution.
    
    Corresponding to flashrom svn r1648.
    Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
    Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
    e038e908
hwaccess.h 9.27 KB