]> git.saurik.com Git - apple/launchd.git/blobdiff - launchd/src/launchd.c
launchd-258.12.tar.gz
[apple/launchd.git] / launchd / src / launchd.c
index 955bdd0a18efdd78bed6ccf2212ff8df9238abe9..37bca50b56ece59bb7bdb861068d45bfccbd3938 100644 (file)
  * @APPLE_APACHE_LICENSE_HEADER_END@
  */
 
-static const char *const __rcs_file_version__ = "$Revision: 23408 $";
+static const char *const __rcs_file_version__ = "$Revision: 23506 $";
 
 #include "config.h"
 #include "launchd.h"
 
+#if HAVE_SECURITY
 #include <Security/Authorization.h>
 #include <Security/AuthorizationTags.h>
 #include <Security/AuthSession.h>
+#endif
 #include <sys/types.h>
 #include <sys/queue.h>
 #include <sys/event.h>
@@ -283,6 +285,7 @@ launchd_single_user(void)
 void
 launchd_SessionCreate(void)
 {
+#if HAVE_SECURITY
        OSStatus (*sescr)(SessionCreationFlags flags, SessionAttributeBits attributes);
        void *seclib;
 
@@ -292,6 +295,7 @@ launchd_SessionCreate(void)
                }
                launchd_assumes(dlclose(seclib) != -1);
        }
+#endif
 }
 
 void