From: Shawn Pearce <spearce@spearce.org>
To: "Randal L. Schwartz" <merlyn@stonehenge.com>
Cc: git@vger.kernel.org
Subject: Re: daemon.c fails to build on Darwin
Date: Thu, 28 Sep 2006 12:06:52 -0400 [thread overview]
Message-ID: <20060928160652.GC2947@spearce.org> (raw)
In-Reply-To: <86ejtw3sbv.fsf@blue.stonehenge.com>
"Randal L. Schwartz" <merlyn@stonehenge.com> wrote:
>
> If this is obvious, can someone fix it? If not, I'll try to sort it out later
> tonight.
>
> gcc -o daemon.o -c -g -O2 -Wall -I/sw/include -I/opt/local/include -DSHA1_HEADER='<openssl/sha.h>' -DNO_STRLCPY daemon.c
> daemon.c: In function 'fill_in_extra_table_entries':
> daemon.c:460: error: 'HOST_NAME_MAX' undeclared (first use in this function)
> daemon.c:460: error: (Each undeclared identifier is reported only once
> daemon.c:460: error: for each function it appears in.)
> daemon.c:460: warning: unused variable 'addrbuf'
> make: *** [daemon.o] Error 1
>
> This is with 2d5b459107cf07bbb307cfb196c2007c497a6dd2.
According to pickaxe it was dd4676299dde0a4c6f8a471e6353170f86a78c8a.
Looks like HOST_NAME_MAX isn't defined on Darwin. Looking at how
daemon.c is using it this just needs to be defined to a suitable
length if its not already defined. Sort of like PATH_MAX on some
other systems...
--
Shawn.
next prev parent reply other threads:[~2006-09-28 16:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-28 15:48 daemon.c fails to build on Darwin Randal L. Schwartz
2006-09-28 16:01 ` Alex Riesen
2006-09-28 16:06 ` Shawn Pearce [this message]
2006-09-28 16:15 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060928160652.GC2947@spearce.org \
--to=spearce@spearce.org \
--cc=git@vger.kernel.org \
--cc=merlyn@stonehenge.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.