This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/12116] AIX 6.1 declares getthrds() in <procinfo.h>


http://sourceware.org/bugzilla/show_bug.cgi?id=12116

--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2011-03-17 13:19:13 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    brobecke@sourceware.org    2011-03-17 13:19:10

Modified files:
    gdb            : ChangeLog aix-thread.c config.in configure 
                     configure.ac 

Log message:
    Add 'getthrds' declaration check in configure for AIX

    On newer versions of AIX (6.x and later), this function is actually
    declared in procinfo.h, thus causing a compilation warning when we
    re-declare it ourselves. This patch adds a configure check for that
    function allowing us to declare the function only if the declaration
    isn't already present in one of procinfo system header.

    gdb/ChangeLog:

    PR gdb/12116:
    * configure.ac: Add getthrds declaration check.
    * configure, config.in: Regenerate.
    * aix-thread.c (getthrds): Declare only if not already declared
    in procinfo.h.  More declaration out of get_signaled_thread to
    global scope.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.12825&r2=1.12826
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/aix-thread.c.diff?cvsroot=src&r1=1.75&r2=1.76
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/config.in.diff?cvsroot=src&r1=1.124&r2=1.125
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/configure.diff?cvsroot=src&r1=1.328&r2=1.329
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/configure.ac.diff?cvsroot=src&r1=1.143&r2=1.144

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]