diff options
Diffstat (limited to 'c/src/exec/libnetworking')
-rw-r--r-- | c/src/exec/libnetworking/ChangeLog | 4 | ||||
-rw-r--r-- | c/src/exec/libnetworking/libc/res_init.c | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/c/src/exec/libnetworking/ChangeLog b/c/src/exec/libnetworking/ChangeLog index c19ffd6ef5..776f478837 100644 --- a/c/src/exec/libnetworking/ChangeLog +++ b/c/src/exec/libnetworking/ChangeLog @@ -1,3 +1,7 @@ +2000-11-25 Eric Norum <eric.norum@usask.ca> + + * libc/res_init.c: Move include to avoid compiler dumping core. + 2000-11-25 Antti P Miettinen <antti.p.miettinen@nokia.com> * wrapup/Makefile.am: Added modem subdir. diff --git a/c/src/exec/libnetworking/libc/res_init.c b/c/src/exec/libnetworking/libc/res_init.c index 9371e9fa82..c44e0eea2d 100644 --- a/c/src/exec/libnetworking/libc/res_init.c +++ b/c/src/exec/libnetworking/libc/res_init.c @@ -90,6 +90,11 @@ static char rcsid[] = "$Id$"; #include "res_config.h" +/* + * RTEMS -- set up name servers from global variable + */ +include <rtems/rtems_bsdnet_internal.h> + static void res_setoptions __P((char *, char *)); #ifdef RESOLVSORT @@ -200,7 +205,6 @@ res_init() * RTEMS -- Set up name servers */ { -#include <rtems/rtems_bsdnet_internal.h> int n = 0; while ((n < rtems_bsdnet_nameserver_count) && (nserv < MAXNS)) { _res.nsaddr_list[nserv].sin_addr = rtems_bsdnet_nameserver[n]; |