brian.gupta at gmail.com
Sat Apr 25 23:39:17 EDT 2009
On Sat, Apr 25, 2009 at 12:16 AM, Jesse Callaway <bonsaime at gmail.com> wrote:
> I'm trying to write a one-liner c program which will set my hardware
> clock because I've forgotten how to normally do this.
> Two things I'd like to know.
> 1. How do you normally do this?
> 2. My program won't compile, FreeBSD 7.1 powerpc.
> #include <sys/types.h>
> #include <sys/systm.h>
> These are the only two lines. I hope to eventually stick resettodr()
> in there, but it dies with just this. I am trying to compile with "cc
> thefile.c". There are a bunch of errors that come up, the first of
> which is
> /usr/include/sys/systm.h:221: error: expected declaration specifiers
> or '...' before 'uintfptr_t'
> Is my system source out of sync with the kernel? Here's my sys/systm.h
> version tag and uname.
> $FreeBSD: src/sys/sys/systm.h,v 1.222.214.171.124.1 2008/11/25 02:59:29 kensmith
> Exp $
> FreeBSD ghee.localdomain 7.1-RELEASE-p5 FreeBSD 7.1-RELEASE-p5 #1: Fri
> Apr 24 14:44:52 EDT 2009
> root at ghee.localdomain:/usr/obj/usr/src/sys/GENERIC powerpc
> And yes... I did just update, so this is my first suspect.
> talk mailing list
> talk at lists.nycbug.org
- Brian Gupta
New York City user groups calendar:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the talk