]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Backport cl/98967227 to GRTE glibc 2.19 sources.
authorBrooks Moses <bmoses@google.com>
Sat, 15 Aug 2015 05:32:51 +0000 (22:32 -0700)
committerBrooks Moses <bmoses@google.com>
Sat, 15 Aug 2015 05:32:51 +0000 (22:32 -0700)
elf/link.h
socket/sys/un.h

index c67a50dd8ee9187e27acd863fcdc76694abaed01..143d584db368d4d8271d05123ef1017d57aba357 100644 (file)
@@ -34,6 +34,8 @@
 #include <bits/elfclass.h>             /* Defines __ELF_NATIVE_CLASS.  */
 #include <bits/link.h>
 
+__BEGIN_DECLS
+
 /* Rendezvous structure used by the run-time dynamic linker to communicate
    details of shared object loading to the debugger.  If the executable's
    dynamic section has a DT_DEBUG element, the run-time linker sets that
@@ -162,8 +164,6 @@ struct dl_phdr_info
     void *dlpi_tls_data;
   };
 
-__BEGIN_DECLS
-
 extern int dl_iterate_phdr (int (*__callback) (struct dl_phdr_info *,
                                               size_t, void *),
                            void *__data);
@@ -187,8 +187,8 @@ extern uintptr_t la_symbind64 (Elf64_Sym *__sym, unsigned int __ndx,
                               unsigned int *__flags, const char *__symname);
 extern unsigned int la_objclose (uintptr_t *__cookie);
 
-__END_DECLS
-
 #endif
 
+__END_DECLS
+
 #endif /* link.h */
index efc2194a3a654c4f1a6ef6f1fe2f333a652b0b24..332ba0ecc79dbd6b4f1440385f07dfa3798bbf9c 100644 (file)
 /* Get the definition of the macro to define the common sockaddr members.  */
 #include <bits/sockaddr.h>
 
+#ifdef __USE_MISC
+# include <stddef.h>           /* For offsetof.  */
+# include <string.h>           /* For prototype of `strlen'.  */
+#endif
+
 __BEGIN_DECLS
 
 /* Structure describing the address of an AF_LOCAL (aka AF_UNIX) socket.  */
@@ -34,8 +39,6 @@ struct sockaddr_un
 
 
 #ifdef __USE_MISC
-# include <string.h>           /* For prototype of `strlen'.  */
-
 /* Evaluate to actual length of the `sockaddr_un' structure.  */
 # define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path)       \
                      + strlen ((ptr)->sun_path))