"man date"<br><br><div class="gmail_quote">On Sat, Apr 25, 2009 at 12:16 AM, Jesse Callaway <span dir="ltr"><<a href="mailto:bonsaime@gmail.com">bonsaime@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm trying to write a one-liner c program which will set my hardware<br>
clock because I've forgotten how to normally do this.<br>
<br>
Two things I'd like to know.<br>
<br>
1. How do you normally do this?<br>
2. My program won't compile, FreeBSD 7.1 powerpc.<br>
<br>
#include <sys/types.h><br>
#include <sys/systm.h><br>
<br>
These are the only two lines. I hope to eventually stick resettodr()<br>
in there, but it dies with just this. I am trying to compile with "cc<br>
thefile.c". There are a bunch of errors that come up, the first of<br>
which is<br>
<br>
/usr/include/sys/systm.h:221: error: expected declaration specifiers<br>
or '...' before 'uintfptr_t'<br>
<br>
Is my system source out of sync with the kernel? Here's my sys/systm.h<br>
version tag and uname.<br>
<br>
$FreeBSD: src/sys/sys/systm.h,v 1.260.2.3.2.1 2008/11/25 02:59:29 kensmith Exp $<br>
FreeBSD ghee.localdomain 7.1-RELEASE-p5 FreeBSD 7.1-RELEASE-p5 #1: Fri<br>
Apr 24 14:44:52 EDT 2009<br>
root@ghee.localdomain:/usr/obj/usr/src/sys/GENERIC powerpc<br>
<br>
And yes... I did just update, so this is my first suspect.<br>
<br>
-jesse<br>
_______________________________________________<br>
talk mailing list<br>
<a href="mailto:talk@lists.nycbug.org">talk@lists.nycbug.org</a><br>
<a href="http://lists.nycbug.org/mailman/listinfo/talk" target="_blank">http://lists.nycbug.org/mailman/listinfo/talk</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>- Brian Gupta<br><br>New York City user groups calendar:<br><a href="http://nyc.brandorr.com/">http://nyc.brandorr.com/</a><br><br>