]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add more checks so that the new Apple print service quotas code compiles
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Tue, 20 Mar 2007 14:36:12 +0000 (14:36 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Tue, 20 Mar 2007 14:36:12 +0000 (14:36 +0000)
on all versions of OS X.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@6370 7a7537e8-13f0-0310-91df-b6672ffda945

config-scripts/cups-common.m4
config.h.in
scheduler/ipp.c

index da7c8a629f929abb71f9442c49f38e7c12950b5d..01a1e3dcb292777deee2a8f6f749f1fe8072abfa 100644 (file)
@@ -216,8 +216,9 @@ case $uname in
                AC_CHECK_HEADER(CoreFoundation/CFPriv.h,AC_DEFINE(HAVE_CFPRIV_H))
                AC_CHECK_HEADER(CoreFoundation/CFBundlePriv.h,AC_DEFINE(HAVE_CFBUNDLEPRIV_H))
 
-               dnl Check for the new membership functions in MacOSX 10.4 (Tiger)...
+               dnl Check for the new membership functions in MacOSX 10.4...
                AC_CHECK_HEADER(membership.h,AC_DEFINE(HAVE_MEMBERSHIP_H))
+               AC_CHECK_HEADER(membershipPriv.h,AC_DEFINE(HAVE_MEMBERSHIPPRIV_H))
                AC_CHECK_FUNCS(mbr_uid_to_uuid)
 
                dnl Need <dlfcn.h> header...
index 7ee1ab046d62dad9823513a674633c1895c9c8c1..e70569d1e7087f2d6e99f075599b90e8909d3010 100644 (file)
  */
 
 #undef HAVE_MEMBERSHIP_H
+#undef HAVE_MEMBERSHIPPRIV_H
 #undef HAVE_MBR_UID_TO_UUID
 
 
index 5f86f8642e8fb37f91887ddbc48e85b77ce0f722..1f0fcec06d8bc5d41d5b6d338d8e07e019463ed4 100644 (file)
 
 #ifdef HAVE_MEMBERSHIP_H
 #  include <membership.h>
-#  include <membershipPriv.h>
 #endif /* HAVE_MEMBERSHIP_H */
+#ifdef HAVE_MEMBERSHIPPRIV_H
+#  include <membershipPriv.h>
+#else
+extern int mbr_user_name_to_uuid(const char* name, uuid_t uu);
+extern int mbr_group_name_to_uuid(const char* name, uuid_t uu);
+extern int mbr_check_membership_by_id(uuid_t user, gid_t group, int* ismember);
+#endif /* HAVE_MEMBERSHIPPRIV_H */
 
 
 /*