Changeset 574 for trunk/src/sh_mounts.c


Ignore:
Timestamp:
Mar 7, 2022, 7:07:37 PM (3 years ago)
Author:
katerina
Message:

Fix for ticket #462 (compile issues on MacOS).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_mounts.c

    r482 r574  
    398398
    399399/* FreeBSD includes */
    400 #if defined(HOST_IS_FREEBSD) || defined(HOST_IS_OPENBSD)
     400#if defined(HOST_IS_FREEBSD) || defined(HOST_IS_OPENBSD) || defined(HOST_IS_DARWIN)
    401401#include <sys/param.h>
    402402#include <sys/ucred.h>
     
    572572
    573573/* end AIX helper routines */
    574 #endif
    575 #endif
    576 
    577 #if defined(HOST_IS_FREEBSD) || defined(HOST_IS_OPENBSD)
     574#endif 
     575#endif
     576
     577#if defined(HOST_IS_FREEBSD) || defined(HOST_IS_OPENBSD) || defined(HOST_IS_DARWIN)
    578578
    579579/* FreeBSD returns flags instead of strings as mount options, so we'll convert
     
    683683
    684684/* The Open/FreeBSD way */
    685 #if defined(HOST_IS_FREEBSD) || defined(HOST_IS_OPENBSD)
     685#if defined(HOST_IS_FREEBSD) || defined(HOST_IS_OPENBSD) || defined(HOST_IS_DARWIN)
    686686{
    687687        struct statfs *fsp;
Note: See TracChangeset for help on using the changeset viewer.