d2r2 / go-dht

Golang library to interact with DHT11/DHT22/DHT12 temperature and humidity sensors from Raspberry PI.
MIT License
133 stars 52 forks source link

./dht.go.h:73:23: error: unknown type name 'int32_t' #7

Closed Fank closed 6 years ago

Fank commented 6 years ago

Unable to build this in an alpine docker image. Adding following "stdint.h" will fix it like https://github.com/antirez/redis/issues/336

#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <fcntl.h>
#include <sched.h>
#include <time.h>
#include <unistd.h>
d2r2 commented 6 years ago

Hi @Fank. Give me a day or so to check that this fix is compatible for all version of RPi and clones.