Building my 107.6 version gives the following warnings:
=======Solaris
PosixDaemon.c: In function `ParseCmdLinArgs':
PosixDaemon.c:169: warning: implicit declaration of function `daemon'
PosixDaemon.c: In function `main':
PosixDaemon.c:234: warning: implicit declaration of function `bzero'
mDNSPosix.c: In function `mDNSPosixListenForSignalInEventLoop':
mDNSPosix.c:1689: warning: implicit declaration of function `bzero'
mDNSUNP.c: In function `daemon':
mDNSUNP.c:744: warning: implicit declaration of function `signal'
../mDNSShared/uds_daemon.c: In function `udsserver_init':
../mDNSShared/uds_daemon.c:993: warning: implicit declaration of function
`bzero'
../mDNSShared/dnssd_clientstub.c: In function `create_hdr':
../mDNSShared/dnssd_clientstub.c:328: warning: implicit declaration of
function `bzero'
Responder.c: In function `main':
Responder.c:727: warning: implicit declaration of function `daemon'
NetMonitor.c: In function `main':
NetMonitor.c:1158: warning: implicit declaration of function `bcopy'
dnsextd.c: In function `ConnectToServer':
dnsextd.c:402: warning: implicit declaration of function `bzero'
dnsextd.c: In function `main':
dnsextd.c:2095: warning: implicit declaration of function `daemon'
=======RedHat
PosixDaemon.c:271: warning: long int format, different type arg (arg 2)
The changes below fix them all, and it compiles with no warnings after that
under RedHat/Solaris.
Please, consider applying this patch.
#include <stdio.h> // For printf()
#include <stdlib.h> // For malloc()
-#include <string.h> // For bcopy()
+#include <string.h> // For strcmp(), strrchr()
+#include <strings.h> // For bcopy(), bzero()
#include <time.h> // For "struct tm" etc.
#include <signal.h> // For SIGINT, SIGTERM
#include <netdb.h> // For gethostbyname()
Index: src/mDNSPosix/Responder.c
===================================================================
--- src/mDNSPosix/Responder.c (revision 315)
+++ src/mDNSPosix/Responder.c (working copy)
@@ -123,6 +123,7 @@
#include "mDNSEmbeddedAPI.h"// Defines the interface to the client layer
above
#include "mDNSPosix.h" // Defines the specific types needed to run mDNS
on this platform
+#include "mDNSUNP.h" // For daemon()
#include <assert.h>
#include <stdio.h> // For printf()
Index: src/mDNSPosix/dnsextd.c
===================================================================
--- src/mDNSPosix/dnsextd.c (revision 315)
+++ src/mDNSPosix/dnsextd.c (working copy)
@@ -138,6 +138,7 @@
#include "../mDNSCore/mDNSEmbeddedAPI.h"
#include "../mDNSCore/DNSCommon.h"
#include "../mDNSCore/mDNS.c"
+#include "mDNSUNP.h" // For daemon()
//!!!KRS we #include mDNS.c for the various constants defined there - we
should move these to DNSCommon.h
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bonjour-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/bonjour-dev/email@hidden