]> git.saurik.com Git - apt-legacy.git/blobdiff - methods/cdrom.cc
Fixed some dependencies, removed mDNS fix for 2.0, and factored for multi-arch support.
[apt-legacy.git] / methods / cdrom.cc
index 26e3b4ba96846ab07f4cc79a030b53a1c6bb765f..f6546aa7e414bf3732e5fd37f283c56667b1d59e 100644 (file)
@@ -197,12 +197,14 @@ bool CDROMMethod::Fetch(FetchItem *Itm)
 
 int main()
 {
+#if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200
    struct nlist nl[2];
    memset(nl, 0, sizeof(nl));
    nl[0].n_un.n_name = (char *) "_useMDNSResponder";
    nlist("/usr/lib/libc.dylib", nl);
    if (nl[0].n_type != N_UNDF)
        *(int *) nl[0].n_value = 0;
+#endif
 
    setlocale(LC_ALL, "");