summaryrefslogtreecommitdiff
path: root/net/openntpd/files/patch-parse.y
blob: abe486d53c8e8172af57346c5ff35f158ac10b93 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$FreeBSD$
--- parse.y.orig	2009-08-01 20:29:44.000000000 +0200
+++ parse.y	2009-08-01 21:17:58.000000000 +0200
@@ -200,6 +200,7 @@ main		: LISTEN ON address	{
 			free($2);
 		}
 		| SENSOR STRING	sensor_opts {
+#ifdef HAVE_SENSORS
 			struct ntp_conf_sensor	*s;
 
 			s = new_sensor($2);
@@ -208,6 +209,9 @@ main		: LISTEN ON address	{
 			s->refstr = $3.refstr;
 			free($2);
 			TAILQ_INSERT_TAIL(&conf->ntp_conf_sensors, s, entry);
+#else
+			yyerror("sensor devices not supported");
+#endif
 		}
 		;