From owner-freebsd-hackers Fri Jun 8 4:47:41 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from serenity.mcc.ac.uk (serenity.mcc.ac.uk [130.88.200.93]) by hub.freebsd.org (Postfix) with ESMTP id 1554C37B405 for ; Fri, 8 Jun 2001 04:47:33 -0700 (PDT) (envelope-from rasputin@freebsd-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97] ident=root) by serenity.mcc.ac.uk with esmtp (Exim 2.05 #6) id 158Kjk-000Pvg-00 for hackers@freebsd.org; Fri, 8 Jun 2001 12:47:32 +0100 Received: (from rasputin@localhost) by dogma.freebsd-uk.eu.org (8.11.3/8.11.1) id f58BlVk70974 for hackers@freebsd.org; Fri, 8 Jun 2001 12:47:31 +0100 (BST) (envelope-from rasputin) Date: Fri, 8 Jun 2001 12:47:31 +0100 From: Rasputin To: hackers@freebsd.org Subject: problem with systm.h trying to call resettodr() Message-ID: <20010608124731.A70666@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-hackers@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), to set the BIOS clock from the system time.. When I try to compile the following snippet, [rasputin@dogma rasputin]$ cat b0rken.c #include #include #include int main(void){ resettodr(); return(0); } I get warning about syntax errors in systm.h: [rasputin@dogma rasputin]$ gcc b0rken.c In file included from b0rken.c:3: /usr/include/sys/systm.h:333: syntax error before `int' /usr/include/sys/systm.h:334: syntax error before `int' /usr/include/sys/systm.h:335: syntax error before `(' (System is STABLE/RELENG_4 freshly cvsupped a few days ago, although /usr/src/sys/sys/systm.h doesn't seem to have changed in STABLE for four months. Any ideas? I know I'm not exactly '3l337' but I'd say that header file was screwed. Or am I missing some wierd ass compiler option? Thanks. -- What you don't know can hurt you, only you won't know it. Rasputin :: Jack of All Trades - Master of Nuns :: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message