Message ID | 20171109122724.12623-2-colin.king@canonical.com |
---|---|
State | Accepted |
Headers | show |
Series | None | expand |
On 2017-11-09 08:27 PM, Colin King wrote: > From: Colin Ian King <colin.king@canonical.com> > > Explicitly include <stdint.h> and <inttypes.h> to avoid build errors > on older toolchains. This supports distros that aren't so up to date > > Signed-off-by: Colin Ian King <colin.king@canonical.com> > --- > src/lib/src/fwts_battery.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/lib/src/fwts_battery.c b/src/lib/src/fwts_battery.c > index c59fe461..8a4ab4f7 100644 > --- a/src/lib/src/fwts_battery.c > +++ b/src/lib/src/fwts_battery.c > @@ -27,6 +27,7 @@ > #include <string.h> > #include <limits.h> > #include <dirent.h> > +#include <inttypes.h> > > static inline bool fwts_battery_match( > const uint32_t index, > Acked-by: Alex Hung <alex.hung@canonical.com>
On 11/09/2017 08:27 PM, Colin King wrote: > From: Colin Ian King <colin.king@canonical.com> > > Explicitly include <stdint.h> and <inttypes.h> to avoid build errors > on older toolchains. This supports distros that aren't so up to date > > Signed-off-by: Colin Ian King <colin.king@canonical.com> > --- > src/lib/src/fwts_battery.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/lib/src/fwts_battery.c b/src/lib/src/fwts_battery.c > index c59fe461..8a4ab4f7 100644 > --- a/src/lib/src/fwts_battery.c > +++ b/src/lib/src/fwts_battery.c > @@ -27,6 +27,7 @@ > #include <string.h> > #include <limits.h> > #include <dirent.h> > +#include <inttypes.h> > > static inline bool fwts_battery_match( > const uint32_t index, Acked-by: Ivan Hu <ivan.hu@canonical.com>
diff --git a/src/lib/src/fwts_battery.c b/src/lib/src/fwts_battery.c index c59fe461..8a4ab4f7 100644 --- a/src/lib/src/fwts_battery.c +++ b/src/lib/src/fwts_battery.c @@ -27,6 +27,7 @@ #include <string.h> #include <limits.h> #include <dirent.h> +#include <inttypes.h> static inline bool fwts_battery_match( const uint32_t index,