Subject: pkg/23059: nbcompat.h may have syntax errors
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 10/04/2003 23:11:09
>Number: 23059
>Category: pkg
>Synopsis: nbcompat.h may have syntax errors
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Oct 05 06:12:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 1.6.1_STABLE
>Organization:
http://bsd.reedmedia.net/
>Environment:
>Description:
I noticed that nbcompat.h has syntax errors under BSD/OS.
nbcompat.h has:
#if !LLONG_MAX
# define LLONG_MAX 0x7fffffffffffffffLL /* max long long */
#endif
#if !ULLONG_MAX
Building under BSD/OS, I get:
In file included from getopt_long.c:43:
nbcompat.h:484: syntax error
nbcompat.h:488: syntax error
*** Error code 1
Because of
#define LLONG_MAX (__extension__(9223372036854775807LL))
and
#define ULLONG_MAX (__extension__(0xffffffffffffffffULL))
>How-To-Repeat:
>Fix:
Use
#if !defined(VALUE)
or
#ifndef VALUE
>Release-Note:
>Audit-Trail:
>Unformatted: