summaryrefslogtreecommitdiff
path: root/net/openntpd/files/patch-parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'net/openntpd/files/patch-parse.y')
-rw-r--r--net/openntpd/files/patch-parse.y21
1 files changed, 21 insertions, 0 deletions
diff --git a/net/openntpd/files/patch-parse.y b/net/openntpd/files/patch-parse.y
new file mode 100644
index 000000000000..abe486d53c8e
--- /dev/null
+++ b/net/openntpd/files/patch-parse.y
@@ -0,0 +1,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
+ }
+ ;
+