diff options
author | groeck <groeck@7894878c-1315-0410-8ee3-d5d059ff63e0> | 2013-03-02 14:52:50 +0000 |
---|---|---|
committer | groeck <groeck@7894878c-1315-0410-8ee3-d5d059ff63e0> | 2013-03-02 14:52:50 +0000 |
commit | 5af8fd99ddf794c6d85fffaae108cc1dcb67ceb7 (patch) | |
tree | 53afffd8c5d30504705fb77180e1902774d34f8d | |
parent | 91ab27599524a8f3a07d75cc2cdc836065c86ef9 (diff) | |
download | i2c-tools-5af8fd99ddf794c6d85fffaae108cc1dcb67ceb7.tar.gz |
Fix build error (NULL undefined) caused by missing include file
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6124 7894878c-1315-0410-8ee3-d5d059ff63e0
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | lib/smbus.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -32,6 +32,7 @@ SVN HEAD library: New libi2c library Properly propagate real error codes on read errors Use I2C_SMBUS_BLOCK_MAX instead of hard-coding 32 + lib/smbus.c: Add missing include which was causing a build error 3.1.0 (2011-12-04) decode-dimms: Decode module configuration type of DDR SDRAM diff --git a/lib/smbus.c b/lib/smbus.c index 6108fe6..d23ecff 100644 --- a/lib/smbus.c +++ b/lib/smbus.c @@ -22,6 +22,7 @@ */ #include <errno.h> +#include <stddef.h> #include <i2c/smbus.h> #include <sys/ioctl.h> #include <linux/types.h> |