diff options
| author | Koen Kooi <koen@openembedded.org> | 2009-04-23 08:34:55 +0200 |
|---|---|---|
| committer | Koen Kooi <koen@openembedded.org> | 2009-04-23 08:34:55 +0200 |
| commit | e06cd7c84bf8bce335d7a195c504dd78423e3fb5 (patch) | |
| tree | 11d2778c8e6536c8f19d7eb7c44ee8f0796bbfa7 /recipes/iputils/files/debian/use_gethostbyname2.diff | |
| parent | 35d0a5ed204189c19e81fad5d473ae9d62476139 (diff) | |
iputils: add 20071127
Diffstat (limited to 'recipes/iputils/files/debian/use_gethostbyname2.diff')
| -rw-r--r-- | recipes/iputils/files/debian/use_gethostbyname2.diff | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes/iputils/files/debian/use_gethostbyname2.diff b/recipes/iputils/files/debian/use_gethostbyname2.diff new file mode 100644 index 0000000000..5a1ea3b583 --- /dev/null +++ b/recipes/iputils/files/debian/use_gethostbyname2.diff @@ -0,0 +1,29 @@ +Index: iputils/tracepath.c +=================================================================== +--- iputils.orig/tracepath.c 2007-12-09 20:32:32.000000000 -0500 ++++ iputils/tracepath.c 2007-12-09 20:33:20.000000000 -0500 +@@ -318,9 +318,9 @@ + base_port = atoi(p+1); + } else + base_port = 44444; +- he = gethostbyname(argv[0]); ++ he = gethostbyname2(argv[0], AF_INET); + if (he == NULL) { +- herror("gethostbyname"); ++ herror("gethostbyname2"); + exit(1); + } + memcpy(&target.sin_addr, he->h_addr, 4); +Index: iputils/ping.c +=================================================================== +--- iputils.orig/ping.c 2007-12-09 20:32:59.000000000 -0500 ++++ iputils/ping.c 2007-12-09 20:33:20.000000000 -0500 +@@ -249,7 +249,7 @@ + if (argc == 1) + options |= F_NUMERIC; + } else { +- hp = gethostbyname(target); ++ hp = gethostbyname2(target, AF_INET); + if (!hp) { + fprintf(stderr, "ping: unknown host %s\n", target); + exit(2); |
