[nycbug-talk] sys/systm.h
Jesse Callaway
bonsaime at gmail.com
Sat Apr 25 00:16:44 EDT 2009
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
More information about the talk
mailing list