]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 6 Aug 1999 22:27:07 +0000 (22:27 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 6 Aug 1999 22:27:07 +0000 (22:27 +0000)
* string/string-inlines.c: Undefined __USE_STRING_INLINES before
defining it.

ChangeLog
inet/tst-ipnode.c
string/string-inlines.c

index d49c23c7b26e3441e33382ec38672041a3c3bf65..3606f6ec2c617f7d108755a0f9f1cbf12a09ee78 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 1999-08-06  Ulrich Drepper  <drepper@cygnus.com>
 
+       * string/string-inlines.c: Undefined __USE_STRING_INLINES before
+       defining it.
+
        * inet/Makefile (tests): Add tst-ipnode.
        * inet/tst-ipnode.c: New file.
 
index b8b1e77c76c8674155d18e47cffb6201abff621e..ad3a7e733bbcdf0ad8ab62b043dc10904098f026 100644 (file)
@@ -1,5 +1,6 @@
 #include <netdb.h>
 #include <stdio.h>
+#include <netinet/in.h>
 
 /* The unspecified IPv6 address.  */
 struct in6_addr anyv6 = IN6ADDR_ANY_INIT;
@@ -12,7 +13,8 @@ main (void)
 
   /* Test the unspecifed IPv6 address.  */
   errval = 0x3453456;
-  if (getipnodebyaddr (&anyv6, sizeof (anyv6), AF_INET6, &errval) != NULL
+  if (getipnodebyaddr ((char *) &anyv6, sizeof (anyv6), AF_INET6, &errval)
+      != NULL
       || errval != HOST_NOT_FOUND)
     {
       puts ("getipnodenyaddr(in6addr_any,...) != NULL");
index 6406ba357f0d47621f6ffe3c3b49b90982b09ed2..7759dbc572b70def3059a604ac63166b6268e00d 100644 (file)
@@ -20,9 +20,9 @@
     functions.  These functions are declared additionally here if
     inlining is not possible.  */
 
+#undef __USE_STRING_INLINES
 #define __USE_STRING_INLINES
 #define _FORCE_INLINES
 #define __STRING_INLINE /* empty */
 
 #include <string.h>
-