summaryrefslogtreecommitdiffstats
path: root/source/libaddns
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-08-24 16:33:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:48 -0500
commit3c547202856378cb1b6895b8c5dd0c9e43c66a1f (patch)
tree738f17a2cc3a40dfd1a346cda26d27839b680f91 /source/libaddns
parent36f04674aeefd93c5a0408b8967dcd48b86fdbc1 (diff)
downloadsamba-3c547202856378cb1b6895b8c5dd0c9e43c66a1f.tar.gz
samba-3c547202856378cb1b6895b8c5dd0c9e43c66a1f.tar.xz
samba-3c547202856378cb1b6895b8c5dd0c9e43c66a1f.zip
r17799: Start fixing the building carnage. Only include calls to
uuid lib fucntions when WITH_DNS_UPDATES is defined.
Diffstat (limited to 'source/libaddns')
-rw-r--r--source/libaddns/dnsutils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/libaddns/dnsutils.c b/source/libaddns/dnsutils.c
index 6071d35d537..acf81a09c3b 100644
--- a/source/libaddns/dnsutils.c
+++ b/source/libaddns/dnsutils.c
@@ -326,6 +326,7 @@ int32 DNSCopyDomainName( uint8 * pBuffer,
int32 DNSGenerateKeyName( char **ppszKeyName )
{
int32 dwError = 0;
+#if defined(WITH_DNS_UPDATES)
char *pszKeyName = NULL;
char szTemp[256];
char szBuffer[256];
@@ -348,6 +349,7 @@ int32 DNSGenerateKeyName( char **ppszKeyName )
return dwError;
error:
+#endif
*ppszKeyName = NULL;
return dwError;