MIPS NPTL patches

Dan E trg_info at mailhaven.com
Thu Apr 9 05:16:23 UTC 2009


Second patch.

This prevents bad things from happening if the header file gets included more than once.
This is pretty standard header file stuff.

---------- start patch ----------
Index: uClibc-nptl/libpthread/nptl/sysdeps/mips/dl-tls.h
===================================================================
--- uClibc-nptl/libpthread/nptl/sysdeps/mips/dl-tls.h	(revision 26031)
+++ uClibc-nptl/libpthread/nptl/sysdeps/mips/dl-tls.h	(working copy)
@@ -17,6 +17,8 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
+#ifndef _DL_TLS_H
+#define _DL_TLS_H
 
 /* Type used for the representation of TLS information in the GOT.  */
 typedef struct
@@ -44,3 +46,5 @@
 
 # define GET_ADDR_OFFSET	(ti->ti_offset + TLS_DTV_OFFSET)
 # define __TLS_GET_ADDR(__ti)	(__tls_get_addr (__ti) - TLS_DTV_OFFSET)
+
+#endif	/* dl-tls.h */
---------- end patch ------------

-- 
http://www.fastmail.fm - Faster than the air-speed velocity of an
                          unladen european swallow



More information about the uClibc mailing list