Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 05-11-2010, 03:40 AM   #1
LQ Newbie
Registered: Feb 2010
Posts: 11

Rep: Reputation: 0
Question Adding timeb.h to my kernel??

In a project I am working on, I just switched from using time.h and clock() to using timeb.h ("#include <sys/timeb.h>") and ftime(). Works perfectly fine while running in on my PC (from Eclipse).

But when I try to build an image for the target, it can't find the timeb.h file.

Is it possibly to use this .h-file on the target (ARM9-processor), and how do I do this?

I know this is a pretty vague question, but I very new to this embedded linux thing.
Old 05-11-2010, 06:43 AM   #2
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,000

Rep: Reputation: 632Reputation: 632Reputation: 632Reputation: 632Reputation: 632Reputation: 632
The system automatically checks for headers in /usr/include. You can do
./configure --includedir=/somewhere/crazy but best also put a symlink to /uer/include there. Also try putting it in with your source includes. But I suspect that if you have timeb.h beside time.h, all will be well.

Last edited by business_kid; 05-11-2010 at 06:47 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel adding palisetty_suman Linux - Newbie 9 03-13-2009 10:00 PM
adding kernel to source naindejardin Linux - Kernel 1 02-20-2008 08:41 AM
adding a feature into the kernel ekdya Debian 8 09-15-2006 01:39 PM
adding tun to kernel and kernel compile gv_rajasekhar Linux - Kernel 2 09-10-2006 11:39 PM
Adding Mods to the Kernel frkstein Linux - General 2 11-29-2003 05:28 PM

All times are GMT -5. The time now is 03:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration