about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--inet/gethstbynm2_r.c4
-rw-r--r--sysdeps/unix/sysv/linux/sys/reboot.h4
3 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 32b645b54e..8d9286dec8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1999-11-01  Andreas Jaeger  <aj@suse.de>
+
+	* sysdeps/unix/sysv/linux/sys/reboot.h: Remove K&R compatibility.
+
+	* inet/gethstbynm2_r.c: Reorder addresses.
+
 1999-09-11  Paul Eggert  <eggert@twinsun.com>
 
 	* posix/glob.h (glob): If #defining to glob64, do this before
diff --git a/inet/gethstbynm2_r.c b/inet/gethstbynm2_r.c
index f4a1357169..0b77b22a3d 100644
--- a/inet/gethstbynm2_r.c
+++ b/inet/gethstbynm2_r.c
@@ -31,6 +31,10 @@
 #define ADD_PARAMS	const char *name, int af
 #define ADD_VARIABLES	name, af
 #define NEED_H_ERRNO	1
+#define NEED__RES_HCONF	1
+#define POSTPROCESS \
+  if (status == NSS_STATUS_SUCCESS)					      \
+    _res_hconf_reorder_addrs (resbuf);
 
 #define HANDLE_DIGITS_DOTS	1
 #define HAVE_LOOKUP_BUFFER	1
diff --git a/sysdeps/unix/sysv/linux/sys/reboot.h b/sysdeps/unix/sysv/linux/sys/reboot.h
index dd7a71b4c6..a16a080ddf 100644
--- a/sysdeps/unix/sysv/linux/sys/reboot.h
+++ b/sysdeps/unix/sysv/linux/sys/reboot.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -42,7 +42,7 @@
 __BEGIN_DECLS
 
 /* Reboot or halt the system.  */
-extern int reboot __P ((int __howto));
+extern int reboot (int __howto) __THROW;
 
 __END_DECLS