From owner-freebsd-stable Thu Jun 7 7:42: 9 2001 Delivered-To: freebsd-stable@freebsd.org Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by hub.freebsd.org (Postfix) with ESMTP id EA70F37B405 for ; Thu, 7 Jun 2001 07:42:05 -0700 (PDT) (envelope-from rasputin@freebsd-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97] ident=root) by probity.mcc.ac.uk with esmtp (Exim 2.05 #7) id 1580z6-000C1Y-00 for stable@freebsd.org; Thu, 7 Jun 2001 15:42:04 +0100 Received: (from rasputin@localhost) by dogma.freebsd-uk.eu.org (8.11.3/8.11.1) id f57Eg4P44549 for stable@freebsd.org; Thu, 7 Jun 2001 15:42:04 +0100 (BST) (envelope-from rasputin) Date: Thu, 7 Jun 2001 15:42:03 +0100 From: Rasputin To: stable@freebsd.org Subject: resettodr needs a broken header file? Message-ID: <20010607154203.A44449@dogma.freebsd-uk.eu.org> Reply-To: Rasputin Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm playing with resettodr(9), ot set the BIOS clcok from the system time.. When I try to compile the following code blob, (*yes*, I know it's kludgy and there are all sorts of reasons to not throw the clock back an hour), I get warning about syntax errors in systm.h. (RELENG_4 built a few days ago. command line is: gcc -Wall -ansi -pedantic -o rollback rollback.c but I get the same error with a straight 'gcc rollback.c') -----------------8<--------------------------- #include #include #include struct timeval foo; struct timezone bar = { 0,1}; int main(void){ gettimeofday(&foo, &bar); foo.tv_sec -= 3600; settimeofday(&foo, &bar); resettodr(); } -----------------8<--------------------------- Any ideas? -- Behold the warranty ... the bold print giveth and the fine print taketh away. Rasputin :: Jack of All Trades - Master of Nuns :: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message