Re: [PATCH] hwclock: fix non-linux build

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

 



On Tuesday 11 April 2017, J William Piggott wrote:
> On 04/11/2017 04:05 AM, Ruediger Meier wrote:
> > From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx>
> >
> > There was one missing ifdef since 336f7c5f.
>
> They were both in that 'if' test before 336f7c5f:
>
> -       if (!(show | set | systohc | hctosys | systz | adjust |
> getepoch -             | setepoch | predict | compare | get))
> -               show = 1;       /* default to show */
>
> But they were defined for all arches then:
>
> -       /* Set option defaults */
> -       show = set = systohc = hctosys = systz = adjust = noadjfile =
> predict = -           compare = get = update = FALSE;
> -       getepoch = setepoch = utc = local_opt = directisa = testing =
> debug = FALSE;
>
>
> I think the old way was a cleaner solution, so in
> sys-utils/hwclock.h:35:
>
> - #ifdef __linux__
>   		getepoch:1,
>   		setepoch:1,
> - #endif
>
> Should work? I do not have a way to test it.

Yes, I've had also thought about this but was not sure and also too lazy 
to check possible side effects. Somehow I think we should either remove 
all ifdefs (__linux__, __alpha__, HAVE_LIBAUDIT) from that struct or 
none.

cu,
Rudi
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux