Number: 479
Title: Failure to compile graphviz on sun with gcc
Submitter: David Faitelson
Date: Thu Jun 24 04:55:21 2004
Subsys: Neato
Version: 1.13
System: Sparc-SunOS-2.8
Severity: minor
Problem:
The file ./dotneato/common/labels.c fails to compile because USHRT_MAX is undefined.

The macro USHRT_MAX is defined in two places:

1. /usr/include/sys/types.h but only if the macro _KERNEL is defined

2. /usr/include/iso/limits_iso.h but trying to include this file produces lots of errors

Eventualy I just copied the definition from sys/types.h into labels.c and then the compilation succeeded.
Comments:
[ellson] Fixed yesterday, it OK in today's snapshot. The fix was: #include <limits.h>
Owner: ellson
Status: Fixed