Ticket #34520: 0003-3a589dedfbf2b0ada111a3e2cb6b14837f2c8b5e.patch

File 0003-3a589dedfbf2b0ada111a3e2cb6b14837f2c8b5e.patch, 928 bytes (added by su-v, 12 years ago)
  • objects/standard/arc.c

    From 3a589dedfbf2b0ada111a3e2cb6b14837f2c8b5e Mon Sep 17 00:00:00 2001
    From: Hans Breuer <hans@breuer.org>
    Date: Sat, 06 Jun 2009 18:01:38 +0000
    Subject: Bug #585004 - implicit declaration of function 'finite' (2nd iteration)
    
    To get the definition either _BSD_SOURCE or _SVID_SOURCE needs to
    be defined before inclusion of <math.h>.
    Removed HAVE_CONFIG_H and chanegd inclusion order
    (cherry picked from commit 8f363f6dd82f9fbf502fceaf1d73a258c17593db)
    ---
    diff --git a/objects/standard/arc.c b/objects/standard/arc.c
    index 28302a6..3a50838 100644
    a b  
    1616 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    1717 */
    1818
    19 #ifdef HAVE_CONFIG_H
    2019#include <config.h>
    21 #endif
    2220
    23 #include <assert.h>
    2421#define _BSD_SOURCE 1 /* to get finite */
    2522#include <math.h>
     23#include <assert.h>
    2624
    2725#include "intl.h"
    2826#include "object.h"