[nycbug-talk] sys/systm.h

Marc Spitzer mspitzer at gmail.com
Sun Apr 26 00:35:57 EDT 2009


This might help:

http://lists.freebsd.org/pipermail/freebsd-questions/2007-March/144321.html

What does your C code look like?

marc


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.260.2.3.2.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.
>
> -jesse
> _______________________________________________
> talk mailing list
> talk at lists.nycbug.org
> http://lists.nycbug.org/mailman/listinfo/talk
>



-- 
Freedom is nothing but a chance to be better.
Albert Camus



More information about the talk mailing list