Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/pgoyette-compat]: src/sys/dev Don't compile NTP-related case if NTP is n...



details:   https://anonhg.NetBSD.org/src/rev/88969fbfd883
branches:  pgoyette-compat
changeset: 830776:88969fbfd883
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Sep 24 00:01:13 2018 +0000

description:
Don't compile NTP-related case if NTP is not available.

No HOOK required here since NTP is not modularized.

diffstat:

 sys/dev/clockctl.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 1942b671fcc2 -r 88969fbfd883 sys/dev/clockctl.c
--- a/sys/dev/clockctl.c        Sun Sep 23 22:00:58 2018 +0000
+++ b/sys/dev/clockctl.c        Mon Sep 24 00:01:13 2018 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: clockctl.c,v 1.35.14.4 2018/09/18 23:03:54 pgoyette Exp $ */
+/*      $NetBSD: clockctl.c,v 1.35.14.5 2018/09/24 00:01:13 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clockctl.c,v 1.35.14.4 2018/09/18 23:03:54 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clockctl.c,v 1.35.14.5 2018/09/24 00:01:13 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ntp.h"
@@ -251,6 +251,7 @@
                error = clock_settime1(l->l_proc, args->clock_id, &ts, false);
                break;
        }
+#ifdef NTP
        case CLOCKCTL_NTP_ADJTIME: {
                struct clockctl_ntp_adjtime *args = data;
                struct timex ntv;
@@ -270,6 +271,7 @@
                        args->retval = ntp_timestatus();
                break;
        }
+#endif
        default:
                error = clockctl_ioctl_50_hook_f_call(dev, cmd, data, flags, l);
                if (error == ENOSYS)



Home | Main Index | Thread Index | Old Index