Date: Mon, 16 Sep 1996 09:40:57 GMT+0100 From: "Kees Jan Koster" <Kees.Koster@nym.sc.philips.com> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/1623: rpc/auth.h won't compile with -ansi flag Message-ID: <24236731290@NLNMG01.nym.sc.philips.com> Resent-Message-ID: <199609160750.AAA19019@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 16 00:50:04 PDT 1996 >Last-Modified: >Originator: Kees Jan Koster >Organization: Philips Semiconductors Nijmegen >Release: FreeBSD 2.1.5-RELEASE i386 >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 >Audit-Trail: >Unformatted: X-send-pr-version: 3.2
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?24236731290>