From owner-freebsd-hackers Fri Dec 29 23:08:28 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA03869 for hackers-outgoing; Fri, 29 Dec 1995 23:08:28 -0800 (PST) Received: from toadflax.cs.ucdavis.edu (toadflax.cs.ucdavis.edu [128.120.56.188]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id XAA03864 for ; Fri, 29 Dec 1995 23:08:26 -0800 (PST) Received: by toadflax.cs.ucdavis.edu (4.1/UCD.CS.2.6) id AA10757; Fri, 29 Dec 95 23:08:25 PST From: obrien@cs.ucdavis.edu (David E. O'Brien) Message-Id: <9512300708.AA10757@toadflax.cs.ucdavis.edu> Subject: Re: libraries To: freebsd-hackers@freebsd.org (FreeBSD Hacker's list) Date: Fri, 29 Dec 1995 23:08:24 -0800 (PST) In-Reply-To: from "John Beukema" at Dec 30, 95 12:24:43 pm X-Mailer: ELM [version 2.4 PL24 PGP3ALPHA] Content-Type: text Sender: owner-hackers@freebsd.org Precedence: bulk > > HTTCP.c:68: conflicting types for `sys_errlist' > > /usr/include/stdio.h:244: previous declaration of `sys_errlist' > > *** Error code 1 > > This error is a commonn problem. Comment it out in httcp.c or add > #ifndef __FreeBSD__ #endif (from memory) around the declaration. One is > defined as char * and the other as const char * as I remember. > jbeukema This would be an abuse of __FreeBSD__. I believe this type of error really occurs for any 4.4BSD based Unix. To repeat the handbook: In the dozens of ports that have been done, there have only been one or two cases where __FreeBSD__ should have been used. Just because an earlier port screwed up and used it in the wrong place doesn't mean you should do so too. Use: #if (defined(BSD) && (BSD >= 199306)) -- David (obrien@cs.ucdavis.edu)