User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040906
FWIW, to get the version I pulled from CVS yesterday compiled on Solaris
8 and
installed right on my Suse 9 boxes, I ended up making the changes
outlined below. No diffs -- you'll want to eyeball these anyway.
----------------------------------------------------------------
for solaris -- touch stdint.h -- otherwise doesn't exist.
----------------------------------------------------------------
dnsextd.c:
#ifndef AF_LOCAL
#define AF_LOCAL AF_UNIX
#endif
---
two semicolons
mDNSBool SerialInitialized = mDNSfalse;;
---
#ifdef NOT_HAVE_STRERROR_R
if( strerror( errno ) )
strcpy( errbuf, strerror( errno ));
else
sprintf(buf, "errno %d", errno);
#else
if (strerror_r(errno, errbuf, 256))
sprintf(buf, "errno %d", errno); // strerror failed - just
print number
#endif
---
#ifdef NOT_HAVE_DAEMON
#include <fcntl.h>
#endif
Copy daemon() from Responder.c to dnsextd.c inside NOT_HAVE_DAEMON.
Should move to mDNSPosix and rename mDNSDaemon() for all uses.
----------------------------------------------------------------
Makefile
add LIBFLAGS to DNSEXT_FLAGS:
DNSEXT_FLAGS = -D_REENTRANT -g -Wall -lpthread $(LIBFLAGS)
add -DNOT_HAVE_STRERROR_R to CFLAGS_OS for solaris.
=================
Suse 9 wants installation of scripts in /etc/init.d/rc?.d, so I changed the
makefile to put the test for "new" structure first, and use that
RUNLEVELSCRIPTSDIR.
# If directory /etc/init.d/ exists, then we install into that (new Linux)
ifeq ($(wildcard /etc/init.d/), /etc/init.d/)
STARTUPSCRIPTDIR = /etc/init.d
RUNLEVELSCRIPTSDIR = /etc/init.d
# If directory /etc/rc.d/init.d/ exists, then we install into that (old
Linux)
else
ifeq ($(wildcard /etc/rc.d/init.d/), /etc/rc.d/init.d/)
STARTUPSCRIPTDIR = /etc/rc.d/init.d
RUNLEVELSCRIPTSDIR = /etc/rc.d
else# If directory /etc/init.d/ exists, then we install into that (new
Linux)
ifeq ($(wildcard /etc/init.d/), /etc/init.d/)
STARTUPSCRIPTDIR = /etc/init.d
RUNLEVELSCRIPTSDIR = /etc/init.d
# If directory /etc/rc.d/init.d/ exists, then we install into that (old
Linux)
else
ifeq ($(wildcard /etc/rc.d/init.d/), /etc/rc.d/init.d/)
STARTUPSCRIPTDIR = /etc/rc.d/init.d
RUNLEVELSCRIPTSDIR = /etc/rc.d
else
# else install into /etc/rc.d/ (*BSD)
STARTUPSCRIPTDIR = $(INSTBASE)/etc/rc.d
endif
endif
# else install into /etc/rc.d/ (*BSD)
STARTUPSCRIPTDIR = $(INSTBASE)/etc/rc.d
endif
endif
This might break other places, though.
cheers,
-dB
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Rendezvous-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/rendezvous-dev/email@hidden
This email sent to email@hidden