summaryrefslogtreecommitdiffstats
path: root/source/include
diff options
context:
space:
mode:
Diffstat (limited to 'source/include')
-rw-r--r--source/include/nameserv.h3
-rw-r--r--source/include/proto.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/source/include/nameserv.h b/source/include/nameserv.h
index 1aa1075543f..ae59f952524 100644
--- a/source/include/nameserv.h
+++ b/source/include/nameserv.h
@@ -410,7 +410,8 @@ struct packet_struct
#define REMOTE_ANNOUNCE_INTERVAL 180
#define DFLT_SERVER_TYPE (SV_TYPE_WORKSTATION | SV_TYPE_SERVER | \
- SV_TYPE_TIME_SOURCE | SV_TYPE_SERVER_UNIX | \
+ (lp_time_server() ? SV_TYPE_TIME_SOURCE : 0) | \
+ SV_TYPE_SERVER_UNIX | \
SV_TYPE_PRINTQ_SERVER | SV_TYPE_SERVER_NT | \
SV_TYPE_NT )
diff --git a/source/include/proto.h b/source/include/proto.h
index fd4e2dd23c8..92feccf384f 100644
--- a/source/include/proto.h
+++ b/source/include/proto.h
@@ -167,6 +167,7 @@ BOOL lp_syslog_only(void);
BOOL lp_browse_list(void);
BOOL lp_unix_realname(void);
BOOL lp_nis_home_map(void);
+BOOL lp_time_server(void);
int lp_os_level(void);
int lp_max_ttl(void);
int lp_max_log_size(void);