Hello Martion,
sorry, I use Mac OS 10.6.8 also.

> We compile it on MacOSX Server 10.6.8, the MNT_CPROTECT is defined in the 
> /usr/include/sys/mount.h file:
> 
> $ grep -r MNT_CPROTECT /usr/include/ 2>/dev/null
> /usr/include/sys/mount.h:#define      MNT_CPROTECT    0x00000080      /* file 
> system supports content protection */
> 
> If you build for 10.6 SDK, it should work fine.
> 
> If you try to build for older MacOSX SDK version (such as 10.5.x) using 
> CFLAGS -isysroot and LDFLAGS -syslibroot, then it may fail - it seems the 
> MNT_CPROTECT is not defined in MacOSX10.5.sdk

Something like -isysroot is not used. But I find SDKROOT and remote the
variable from the login shell.

I remove this.
SDKROOT=/Developer/SDKs/MacOSX10.5.sdk

I checked the /usr/include/sys/mount.h (Mac OS X 10.6.8) and I got the
following only.

-r--r--r--  1 root  wheel  15174 Jul 26  2010 /usr/include/sys/mount.h

 * Copyright (c) 2000-2008 Apple Inc. All rights reserved.

/*
 * User specifiable flags.
 *
 * Unmount uses MNT_FORCE flag.
 */
#define MNT_RDONLY      0x00000001      /* read only filesystem */
#define MNT_SYNCHRONOUS 0x00000002      /* file system written
synchronously */
#define MNT_NOEXEC      0x00000004      /* can't exec from filesystem */
#define MNT_NOSUID      0x00000008      /* don't honor setuid bits on fs */
#define MNT_NODEV       0x00000010      /* don't interpret special files */
#define MNT_UNION       0x00000020      /* union with underlying
filesystem */
#define MNT_ASYNC       0x00000040      /* file system written
asynchronously */

/*
 * NFS export related mount flags.
 */

I checked this with Mac OS X 10.10.3 and I find the missing line behind
the "MNT_ASYNC" define.

#define MNT_CPROTECT    0x00000080      /* file system supports content
protection */

But my Mac OS X 10.6.8 does not have a appropriate header file that fit.
The used gcc is version 4.2.1 (Apple Inc. build 5664).

Sorry,
Lutz


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to