From owner-freebsd-hackers Fri Oct 23 13:19:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA06414 for freebsd-hackers-outgoing; Fri, 23 Oct 1998 13:19:16 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA06409 for ; Fri, 23 Oct 1998 13:19:16 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id NAA01049; Fri, 23 Oct 1998 13:22:54 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199810232022.NAA01049@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Glenn Johnson cc: freebsd-hackers@FreeBSD.ORG Subject: Re: reconciling different defines in header files between Linux and FreeBSD In-reply-to: Your message of "Fri, 23 Oct 1998 15:11:03 CDT." <199810232011.PAA00764@symbion.srrc.usda.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 23 Oct 1998 13:22:54 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Greetings, > > I am trying to compile code on FreeBSD 3.0 that was written with Linux in > mind. > The following code snippet is where it is failing: ... > void *brkadr, *sbrk(); ... > What is the right way to reconcile my code? Do I need to redefine sbrk in the source file as extern or do I make the call explicitly char? The code above contains a bogus prototype for sbrk; remove it. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message