From Kees.Koster@nym.sc.philips.com  Mon Sep 16 00:42:04 1996
Received: from relay.philips.nl (ns.philips.nl [130.144.65.1])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id AAA18772
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 Sep 1996 00:42:03 -0700 (PDT)
Received: (from smap@localhost) by relay.philips.nl (8.6.9/8.6.9-950414) id JAA00608 for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 Sep 1996 09:41:30 +0200
Received: from unknown(192.26.173.32) by ns.philips.nl via smap (V1.3+ESMTP) with ESMTP
	id sma000471; Mon Sep 16 09:40:36 1996
Received: from aonc01.nym.sc.philips.com (aonc01.nym.sc.philips.com [130.144.70.193]) by smtp.nl.cis.philips.com (8.6.10/8.6.10-0.9z-02May95) with ESMTP id JAA00853 for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 Sep 1996 09:43:30 +0200
Received: from NLNMG01.nym.sc.philips.com (nlnmg01 [130.144.80.6]) 
	by aonc01.nym.sc.philips.com (8.6.10/8.6.10-1.2a-960822) with ESMTP id JAA18849
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 Sep 1996 09:40:57 +0200
Received: from NLNMG01/MAILQUEUE by NLNMG01.nym.sc.philips.com (Mercury 1.21);
    16 Sep 96 09:41:02 +0100
Received: from MAILQUEUE by NLNMG01 (Mercury 1.21); 16 Sep 96 09:40:59 +0100
Message-Id: <24236731290@NLNMG01.nym.sc.philips.com>
Date: Mon, 16 Sep 1996 09:40:57 GMT+0100
From: "Kees Jan Koster" <Kees.Koster@nym.sc.philips.com>
Reply-To: Kees.Koster@nym.sc.philips.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: rpc/auth.h won't compile with -ansi flag

>Number:         1623
>Category:       bin
>Synopsis:       rpc/auth.h won't compile with -ansi flag
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 16 00:50:04 PDT 1996
>Closed-Date:    Mon Feb 24 22:52:00 PST 1997
>Last-Modified:  Mon Feb 24 22:52:43 PST 1997
>Originator:     Kees Jan Koster
>Release:        FreeBSD 2.1.5-RELEASE i386
>Organization:
Philips Semiconductors Nijmegen
>Environment:

gcc version 2.7.2

>Description:

When I include rpc/auth.h in  a file and compile it with -ansi I
get error messages because u_int32 is not defined. This seems to
be because gcc defines  '__i386__' instead of  'i386' when given
the -ansi flag.

>How-To-Repeat:

Well, #include and compile it ;)

>Fix:

*** auth.h.orig	Sun Sep 15 17:16:09 1996
--- auth.h	Sun Sep 15 17:17:09 1996
***************
*** 68,74 ****
  	AUTH_FAILED=7			/* some unknown reason */
  };
  
! #if (mc68000 || sparc || vax || i386 || tahoe || hp300)
  typedef u_long u_int32;	/* 32-bit unsigned integers */
  #endif
  
--- 68,74 ----
  	AUTH_FAILED=7			/* some unknown reason */
  };
  
! #if (__mc68000__ || __sparc__ || __vax__ || __i386__ || __tahoe__ 
|| __hp300__)
  typedef u_long u_int32;	/* 32-bit unsigned integers */
  #endif
  
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mpp 
State-Changed-When: Mon Feb 24 22:52:00 PST 1997 
State-Changed-Why:  
Fixed in -current. 
>Unformatted:
X-send-pr-version: 3.2

