lib/smbus.c: Include stddef.h to fix build error
PATCH 1/1 lib/smbus.c: Include stddef.h to fix build error
lib/smbus.c fails to build since NULL is undefined.
Reported-by Tobias Simon <[email protected]>
Signed-off-by Guenter Roeck <[email protected]>
--- CHANGES | 1 + lib/smbus.c | 1 + 2 files changed, 2 insertions(+)
CHANGES +1 -0
@@ -21,6 +21,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
lib/smbus.c +1 -0
@@ -22,6 +22,7 @@*/ #include <errno.h> +#include <stddef.h> #include <i2c/smbus.h> #include <sys/ioctl.h> #include <linux/types.h>
Signature · 7 lines
1.7.9.7 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 4 lines · Guenter Roeck
lib/smbus.cfails to build since NULL is undefined.Reported-by Tobias Simon <[email protected]>Signed-off-by Guenter Roeck <[email protected]>
Good catch, please commit.
Next time, please include "i2c-tools" or "libi2c" somewhere in the subject or summary so that it is more obvious what piece of software you're fixing ;)
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors