Changeset f2bb439 in rtems-tools for rtemstoolkit


Ignore:
Timestamp:
Aug 20, 2017, 7:19:06 AM (2 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
fd0bcc5
Parents:
78bbe4c
Message:

rtemstoolkit/libiberty: Fix broken configure detection.

The file libiberty.h requires some configure macros to control some parts
and these are not provided so the file did not match what was needed. Hard
code the result and remove the need for the macros. The related calls
are not provided in our libiberty usage and not needed.

Closes #3103.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/libiberty/libiberty.h

    r78bbe4c rf2bb439  
    22
    33   Copyright (C) 1997-2017 Free Software Foundation, Inc.
    4    
     4
    55   Note - certain prototypes declared in this header file are for
    66   functions whoes implementation copyright does not belong to the
     
    2424   Foundation, Inc., 51 Franklin Street - Fifth Floor,
    2525   Boston, MA 02110-1301, USA.
    26    
     26
    2727   Written by Cygnus Support, 1994.
    2828
     
    105105   to find the declaration so provide a fully prototyped one.  If it
    106106   is 1, we found it so don't provide any declaration at all.  */
    107 #if !HAVE_DECL_BASENAME
     107#if REMOVED_FOR_RTEMS_TOOLS && !HAVE_DECL_BASENAME
    108108#if defined (__GNU_LIBRARY__ ) || defined (__linux__) \
    109109 || defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__NetBSD__) \
    110110 || defined (__CYGWIN__) || defined (__CYGWIN32__) || defined (__MINGW32__) \
    111  || defined (__DragonFly__) || defined (HAVE_DECL_BASENAME) 
     111 || defined (__DragonFly__) || defined (HAVE_DECL_BASENAME)
    112112extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_NONNULL(1);
    113113#else
     
    207207/* Forward declaration to avoid #include <sys/time.h>.   */
    208208struct timeval;
    209 extern int gettimeofday (struct timeval *, void *); 
     209extern int gettimeofday (struct timeval *, void *);
    210210#endif
    211211
     
    452452   calling pex_read_err and reading from the returned
    453453   FILE object.  This flag may be specified only for
    454    the last program in a pipeline. 
     454   the last program in a pipeline.
    455455
    456456   This flag is supported only on Unix and Windows.  */
     
    645645extern char *xasprintf (const char *, ...) ATTRIBUTE_MALLOC ATTRIBUTE_PRINTF_1;
    646646
    647 #if !HAVE_DECL_VASPRINTF
     647#if REMOVED_FOR_RTEMS_TOOLS && !HAVE_DECL_VASPRINTF
    648648/* Like vsprintf but provides a pointer to malloc'd storage, which
    649649   must be freed by the caller.  */
Note: See TracChangeset for help on using the changeset viewer.