[PATCH][TRIVIAL] Compile fix for the rtc test program

From: Michael Opdenacker
Date: Sun Jun 25 2006 - 11:41:40 EST


This patch is a trivial compile fix the test program embedded in Documentation/rtc.txt
Without it, compiling issues many ugly warnings:
warning: incompatible implicit declaration of built-in function ‘exit’

Also available on http://free-electrons.com/pub/patches/linux/20060625/rtc-test.patch

Signed-off-by: Michael Opdenacker <michael@xxxxxxxxxxxxxxxxxx>

--- linux-2.6.17/Documentation/rtc.txt 2006-06-18 03:49:35.000000000 +0200
+++ linux-2.6.17-rtc-test/Documentation/rtc.txt 2006-06-25 16:49:26.000000000 +0200
@@ -81,6 +81,7 @@ that will be using this driver.
*/

#include <stdio.h>
+#include <stdlib.h>
#include <linux/rtc.h>
#include <sys/ioctl.h>
#include <sys/time.h>

--
Michael Opdenacker, Free Electrons
Free Embedded Linux Training Materials
on http://free-electrons.com/training
(More than 1000 pages!)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/