This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/252] hsearch_data is not usable with sizeof() as
- From: "benedict at starbak dot net" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 10 Mar 2005 17:11:07 -0000
- Subject: [Bug libc/252] hsearch_data is not usable with sizeof() as
- References: <20040702165219.252.damien_mattei@yahoo.com>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From benedict at starbak dot net 2005-03-10 17:11 -------
I have a guess as to Damien's problem... if you do something like
#include <features.h>
#define _GNU_SOURCE
#include <search.h>
you will get the behavior he is seeing. This is also true if some file is
included that includes features.h being preprocessed before _GNU_SOURCE is
defined. Always make sure to define variables like this before including any files.
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=252
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.