This is the mail archive of the gdb-prs@sources.redhat.com 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]

gdb/478: compile error on HP-UX 11: undefined setlinebuf()



>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:


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