diff options
author | Jay Freeman <saurik@saurik.com> | 2009-04-11 00:51:56 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2009-04-11 00:51:56 +0000 |
commit | e590d5ccd25f4d142ab5ded23469b067e9d886a5 (patch) | |
tree | b4b75d31d507a6dbdf88224bd351c8048c7c19b3 /data/inetutils/mdns.diff | |
parent | f520f20903e1ec962c9b63cabfe54f26780eeabb (diff) |
Finalized inetutils upgrade to 1.6.
git-svn-id: http://svn.telesphoreo.org/trunk@576 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/inetutils/mdns.diff')
-rw-r--r-- | data/inetutils/mdns.diff | 550 |
1 files changed, 0 insertions, 550 deletions
diff --git a/data/inetutils/mdns.diff b/data/inetutils/mdns.diff deleted file mode 100644 index 8d9676010..000000000 --- a/data/inetutils/mdns.diff +++ /dev/null @@ -1,550 +0,0 @@ -diff -rui inetutils-1.5/ftp/main.c inetutils-1.5+iPhone/ftp/main.c ---- inetutils-1.5/ftp/main.c 2006-10-11 23:30:03.000000000 +0000 -+++ inetutils-1.5+iPhone/ftp/main.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /* - * Copyright (c) 1985, 1989, 1993, 1994, 2002 - * The Regents of the University of California. All rights reserved. -@@ -115,6 +117,15 @@ - int - main (int argc, char *argv[]) - { -+#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 -+ - int ch, top; - struct passwd *pw = NULL; - char *cp; -diff -rui inetutils-1.5/ftpd/ftpd.c inetutils-1.5+iPhone/ftpd/ftpd.c ---- inetutils-1.5/ftpd/ftpd.c 2006-10-11 23:23:58.000000000 +0000 -+++ inetutils-1.5+iPhone/ftpd/ftpd.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /* - Ftp Server - * Copyright (c) 1985, 1988, 1990, 1992, 1993, 1994, 2002 - * The Regents of the University of California. All rights reserved. -@@ -328,6 +330,15 @@ - int - main(int argc, char *argv[], char **envp) - { -+#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 -+ - int option; - - program_name = argv[0]; -diff -rui inetutils-1.5/gwhois/whois.c inetutils-1.5+iPhone/gwhois/whois.c ---- inetutils-1.5/gwhois/whois.c 2007-06-28 23:07:04.000000000 +0000 -+++ inetutils-1.5+iPhone/gwhois/whois.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /* Copyright 1999 by Marco d'Itri <md@linux.it>. - * - * This program is free software; you can redistribute it and/or modify -@@ -47,6 +49,15 @@ - - int main(int argc, char *argv[]) - { -+#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 -+ - int ch, nopar = 0; - const char *server = NULL, *port = NULL; - char *p, *q, *qstring, fstring[64] = "\0"; -diff -rui inetutils-1.5/ifconfig/ifconfig.c inetutils-1.5+iPhone/ifconfig/ifconfig.c ---- inetutils-1.5/ifconfig/ifconfig.c 2007-06-28 22:58:23.000000000 +0000 -+++ inetutils-1.5+iPhone/ifconfig/ifconfig.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /* ifconfig.c -- network interface configuration utility - - Copyright (C) 2001, 2002, 2007 Free Software Foundation, Inc. -@@ -56,6 +58,15 @@ - int - main(int argc, char *argv[]) - { -+#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 -+ - int err = 0; - int sfd; - struct ifconfig *ifp; -diff -rui inetutils-1.5/inetd/inetd.c inetutils-1.5+iPhone/inetd/inetd.c ---- inetutils-1.5/inetd/inetd.c 2007-06-28 22:58:23.000000000 +0000 -+++ inetutils-1.5+iPhone/inetd/inetd.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 - Free Software Foundation, Inc. - -@@ -386,6 +388,15 @@ - int - main (int argc, char *argv[], char *envp[]) - { -+#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 -+ - int option; - struct servtab *sep; - int dofork; -diff -rui inetutils-1.5/logger/logger.c inetutils-1.5+iPhone/logger/logger.c ---- inetutils-1.5/logger/logger.c 2006-10-11 23:27:04.000000000 +0000 -+++ inetutils-1.5+iPhone/logger/logger.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /* - * Copyright (c) 1983, 1993, 2002 - * The Regents of the University of California. All rights reserved. -@@ -101,6 +103,15 @@ - int - main (int argc, char *argv[]) - { -+#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 -+ - int option, logflags, pri; - char *tag, buf[1024]; - -diff -rui inetutils-1.5/ping/ping6.c inetutils-1.5+iPhone/ping/ping6.c ---- inetutils-1.5/ping/ping6.c 2007-06-28 22:58:24.000000000 +0000 -+++ inetutils-1.5+iPhone/ping/ping6.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /* Copyright (C) 1998, 2001, 2002, 2004, 2005, 2007 Free Software Foundation, Inc. - - This file is part of GNU Inetutils. -@@ -81,6 +83,15 @@ - int - main (int argc, char **argv) - { -+#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 -+ - int c; - char *p; - int one = 1; -diff -rui inetutils-1.5/ping/ping.c inetutils-1.5+iPhone/ping/ping.c ---- inetutils-1.5/ping/ping.c 2007-06-28 22:58:24.000000000 +0000 -+++ inetutils-1.5+iPhone/ping/ping.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /* Copyright (C) 1998,2001, 2002, 2005, 2007 Free Software Foundation, Inc. - - This file is part of GNU Inetutils. -@@ -106,6 +108,15 @@ - int - main (int argc, char **argv) - { -+#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 -+ - int c; - char *p; - int one = 1; -diff -rui inetutils-1.5/rcp/rcp.c inetutils-1.5+iPhone/rcp/rcp.c ---- inetutils-1.5/rcp/rcp.c 2006-10-11 23:27:33.000000000 +0000 -+++ inetutils-1.5+iPhone/rcp/rcp.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /* - * Copyright (c) 1983, 1990, 1992, 1993, 2002 - * The Regents of the University of California. All rights reserved. -@@ -156,6 +158,15 @@ - int - main (int argc, char *argv[]) - { -+#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 -+ - struct servent *sp; - int ch, fflag, tflag; - char *targ; -diff -rui inetutils-1.5/rexecd/rexecd.c inetutils-1.5+iPhone/rexecd/rexecd.c ---- inetutils-1.5/rexecd/rexecd.c 2006-10-11 23:45:58.000000000 +0000 -+++ inetutils-1.5+iPhone/rexecd/rexecd.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /* - * Copyright (c) 1983, 1993 - * The Regents of the University of California. All rights reserved. -@@ -105,6 +107,15 @@ - int - main (int argc, char **argv) - { -+#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 -+ - struct sockaddr_in from; - int fromlen, sockfd = STDIN_FILENO; - int c; -diff -rui inetutils-1.5/rlogin/rlogin.c inetutils-1.5+iPhone/rlogin/rlogin.c ---- inetutils-1.5/rlogin/rlogin.c 2006-10-11 23:27:58.000000000 +0000 -+++ inetutils-1.5+iPhone/rlogin/rlogin.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /* - * Copyright (c) 1983, 1990, 1993, 2002 - * The Regents of the University of California. All rights reserved. -@@ -236,6 +238,15 @@ - int - main(int argc, char *argv[]) - { -+#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 -+ - struct passwd *pw; - struct servent *sp; - sigset_t smask; -diff -rui inetutils-1.5/rlogind/rlogind.c inetutils-1.5+iPhone/rlogind/rlogind.c ---- inetutils-1.5/rlogind/rlogind.c 2007-06-28 22:58:24.000000000 +0000 -+++ inetutils-1.5+iPhone/rlogind/rlogind.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /* Copyright (C) 1998,2001, 2002, 2007 Free Software Foundation, Inc. - - This file is part of GNU Inetutils. -@@ -267,6 +269,15 @@ - int - main (int argc, char *argv[]) - { -+#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 -+ - int port = 0; - int maxchildren = DEFMAXCHILDREN; - int mode = MODE_INETD; -diff -rui inetutils-1.5/rsh/rsh.c inetutils-1.5+iPhone/rsh/rsh.c ---- inetutils-1.5/rsh/rsh.c 2006-10-11 23:28:34.000000000 +0000 -+++ inetutils-1.5+iPhone/rsh/rsh.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /*- - * Copyright (c) 1983, 1990, 1993, 1994, 2002 - * The Regents of the University of California. All rights reserved. -@@ -220,6 +222,15 @@ - int - main (int argc, char **argv) - { -+#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 -+ - struct passwd *pw; - struct servent *sp; - sigset_t sigs, osigs; -diff -rui inetutils-1.5/rshd/rshd.c inetutils-1.5+iPhone/rshd/rshd.c ---- inetutils-1.5/rshd/rshd.c 2006-10-21 11:56:36.000000000 +0000 -+++ inetutils-1.5+iPhone/rshd/rshd.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /*- - * Copyright (c) 1988, 1989, 1992, 1993, 1994, 2002 - * The Regents of the University of California. All rights reserved. -@@ -158,6 +160,15 @@ - int - main (int argc, char *argv[]) - { -+#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 -+ - extern int __check_rhosts_file; /* hook in rcmd(3) */ - struct linger linger; - int ch, on = 1, fromlen; -diff -rui inetutils-1.5/syslogd/syslogd.c inetutils-1.5+iPhone/syslogd/syslogd.c ---- inetutils-1.5/syslogd/syslogd.c 2006-10-21 12:11:57.000000000 +0000 -+++ inetutils-1.5+iPhone/syslogd/syslogd.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /* syslogd - log system messages - * - * Copyright (c) 1983, 1988, 1993, 1994, 2002 -@@ -353,6 +355,15 @@ - int - main (int argc, char *argv[]) - { -+#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 -+ - int option; - size_t i; - FILE *fp; -diff -rui inetutils-1.5/talk/talk.c inetutils-1.5+iPhone/talk/talk.c ---- inetutils-1.5/talk/talk.c 2006-10-12 08:01:37.000000000 +0000 -+++ inetutils-1.5+iPhone/talk/talk.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /* - * Copyright (c) 1983, 1993 - * The Regents of the University of California. All rights reserved. -@@ -71,6 +73,15 @@ - int - main (int argc, char *argv[]) - { -+#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 -+ - int c; - - program_name = argv[0]; -diff -rui inetutils-1.5/talkd/talkd.c inetutils-1.5+iPhone/talkd/talkd.c ---- inetutils-1.5/talkd/talkd.c 2007-06-28 22:58:24.000000000 +0000 -+++ inetutils-1.5+iPhone/talkd/talkd.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /* Copyright (C) 1998,2001, 2002, 2007 Free Software Foundation, Inc. - - This file is part of GNU Inetutils. -@@ -59,6 +61,15 @@ - int - main(int argc, char *argv[]) - { -+#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 -+ - int c; - char *acl_file = NULL; - -diff -rui inetutils-1.5/telnet/main.c inetutils-1.5+iPhone/telnet/main.c ---- inetutils-1.5/telnet/main.c 2006-10-11 21:53:36.000000000 +0000 -+++ inetutils-1.5+iPhone/telnet/main.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /* - * Copyright (c) 1988, 1990, 1993 - * The Regents of the University of California. All rights reserved. -@@ -180,6 +182,15 @@ - int - main(int argc, char *argv[]) - { -+#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 -+ - extern char *optarg; - extern int optind; - int ch; -diff -rui inetutils-1.5/telnetd/telnetd.c inetutils-1.5+iPhone/telnetd/telnetd.c ---- inetutils-1.5/telnetd/telnetd.c 2007-06-28 22:58:24.000000000 +0000 -+++ inetutils-1.5+iPhone/telnetd/telnetd.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /* Copyright (C) 1998, 2001, 2002, 2004, 2007x Free Software Foundation, Inc. - - This file is part of GNU Inetutils. -@@ -112,6 +114,15 @@ - int - main (int argc, char **argv) - { -+#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 -+ - int c; - program_name = argv[0]; - while ((c = getopt_long (argc, argv, short_options, long_options, NULL)) -diff -rui inetutils-1.5/tftp/main.c inetutils-1.5+iPhone/tftp/main.c ---- inetutils-1.5/tftp/main.c 2006-10-11 23:42:52.000000000 +0000 -+++ inetutils-1.5+iPhone/tftp/main.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /* - * Copyright (c) 1983, 1993 - * The Regents of the University of California. All rights reserved. -@@ -154,6 +156,15 @@ - int - main (int argc, char *argv[]) - { -+#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 -+ - struct sockaddr_in sin; - - program_name = argv[0]; -diff -rui inetutils-1.5/tftpd/tftpd.c inetutils-1.5+iPhone/tftpd/tftpd.c ---- inetutils-1.5/tftpd/tftpd.c 2006-10-11 21:46:27.000000000 +0000 -+++ inetutils-1.5+iPhone/tftpd/tftpd.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /* - * Copyright (c) 1983, 1993 - * The Regents of the University of California. All rights reserved. -@@ -124,6 +126,15 @@ - int - main (int argc, char *argv[]) - { -+#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 -+ - register struct tftphdr *tp; - register int n; - int ch, on; -diff -rui inetutils-1.5/uucpd/uucpd.c inetutils-1.5+iPhone/uucpd/uucpd.c ---- inetutils-1.5/uucpd/uucpd.c 2006-10-11 23:46:12.000000000 +0000 -+++ inetutils-1.5+iPhone/uucpd/uucpd.c 2008-01-30 17:23:32.000000000 +0000 -@@ -1,3 +1,5 @@ -+#include <mach-o/nlist.h> -+ - /* - * Copyright (c) 1985, 1993 - * The Regents of the University of California. All rights reserved. -@@ -111,6 +113,15 @@ - int - main (int argc, char **argv) - { -+#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 -+ - #ifndef BSDINETD - register int s, tcp_socket; - struct servent *sp; |