From: Ulrich Drepper Date: Mon, 20 Nov 2000 10:18:11 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_2_1~313 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ce3019ccbbc481b87d119113a47168f03a4f55e6;p=thirdparty%2Fglibc.git Update. * malloc/thread-m.h: gcc doesn't tolerate zero-sized types anymore. --- diff --git a/ChangeLog b/ChangeLog index d6d520f2b66..b7b9ee3c275 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2000-11-20 Ulrich Drepper + * malloc/thread-m.h: gcc doesn't tolerate zero-sized types anymore. + * csu/gmon-start.c: Always have prototype for __gmon_start. * csu/version.c: Add prototypes for __libc_print_version and __libc_main. diff --git a/malloc/thread-m.h b/malloc/thread-m.h index 4e51bc29f41..37e7ac9f744 100644 --- a/malloc/thread-m.h +++ b/malloc/thread-m.h @@ -102,7 +102,7 @@ typedef pthread_mutex_t mutex_t; #include -typedef int tsd_key_t[0]; /* no key data structure, libc magic does it */ +typedef int tsd_key_t[1]; /* no key data structure, libc magic does it */ __libc_tsd_define (, MALLOC) /* declaration/common definition */ #define tsd_key_create(key, destr) ((void) (key)) #define tsd_setspecific(key, data) __libc_tsd_set (MALLOC, (data))