[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problem in libc-tsd.h
From: |
Stephen Hemminger |
Subject: |
problem in libc-tsd.h |
Date: |
Thu, 03 Oct 2002 16:46:46 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020918 |
Had a problem building glibc 2.3 on Linux (2.5.40).
ctype.h would not compile.
The following simple patch fixes it, don't know what the author was
really trying to do here.
--- sysdeps/generic/bits/libc-tsd.h~ Mon Sep 2 11:48:10 2002
+++ sysdeps/generic/bits/libc-tsd.h Thu Oct 3 16:35:39 2002
@@ -60,7 +60,7 @@
#else
# define __libc_tsd_define(CLASS, KEY) CLASS void
*__libc_tsd_##KEY##_data;
-# define __libc_tsd_address(KEY) (&__libc_tsd_##KEY)
+# define __libc_tsd_address(KEY) (&__libc_tsd_##KEY##_data)
# define __libc_tsd_get(KEY) (__libc_tsd_##KEY##_data)
# define __libc_tsd_set(KEY, VALUE) (__libc_tsd_##KEY##_data = (VALUE))
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- problem in libc-tsd.h,
Stephen Hemminger <=