This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/478: compile error on HP-UX 11: undefined setlinebuf()
- From: friedmund at lycos dot de
- To: gdb-gnats at sources dot redhat dot com
- Date: 9 Apr 2002 05:37:29 -0000
- Subject: gdb/478: compile error on HP-UX 11: undefined setlinebuf()
- Reply-to: friedmund at lycos dot de
>Number: 478
>Category: gdb
>Synopsis: compile error on HP-UX 11: undefined setlinebuf()
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 08 22:38:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Friedmund Lassmann
>Release: gdb-5.1.1
>Organization:
>Environment:
HP-UX B.11.00 A 9000/785
gcc 3.0.4
>Description:
Compilation of gdb-5.1.1 fails in the gdb/tui directory:
setlinebuf() is not defined.
I could only compile the tui module by adding this to tui.h:
#define setlinebuf(file) setvbuf(file, (char *)NULL, _IOLBF, 0)
>How-To-Repeat:
./configure --enable-tui && make
>Fix:
I'm no expert, but what about defining this for HP-UX 11
in gdb/tui.h:
#define setlinebuf(file) setvbuf(file, (char *)NULL, _IOLBF, 0)
>Release-Note:
>Audit-Trail:
>Unformatted: