isfinite needs _GNU_SOURCE defined on EL-5
|Reported by:||darkpanda||Owned by:||pramsey|
isfinite needs _GNU_SOURCE to be defined before including math.h on EL-5 or you'll get linker errors when linking liblwgeom. Adding the following to the top of g_box.c will fix the problem:
#ifndef _GNU_SOURCE #define _GNU_SOURCE #endif
It seems the version of gcc on EL-5 is old enough that isfinite won't be included by default unless _GNU_SOURCE is defined, as the isfinite macro is a C99 feature.