openbsd-ports/misc/digitemp/patches/patch-src_digitemp_c
sturm f0da9c74d5 initial import of digitemp 3.5.0
DigiTemp is a simple to use program for reading values from 1-wire
devices. Its main use is for reading temperature sensors, but it
also reads counters, and understands the 1-wire hubs with devices
on different branches of the network. DigiTemp now supports the
following 1-wire temperature sensors: DS18S20 (and DS1820), DS18B20,
DS1822, the DS2438 Smart Battery Monitor, DS2422 and DS2423 Counters,
DS2409 MicroLAN Coupler (used in 1-wire hubs), and the AAG TAI-8540
humidity sensor.

based on a submission of Julien TOUCHE
2007-10-07 09:42:03 +00:00

16 lines
356 B
Plaintext

$OpenBSD: patch-src_digitemp_c,v 1.1.1.1 2007/10/07 09:42:03 sturm Exp $
--- src/digitemp.c.orig Sat Mar 17 16:49:27 2007
+++ src/digitemp.c Sat Mar 17 16:49:40 2007
@@ -73,7 +73,11 @@
#include <fcntl.h>
#include <strings.h>
#include <stdint.h>
+#ifdef OPENBSD
+#include <sys/endian.h>
+#else
#include <endian.h>
+#endif
#ifdef LINUX
#ifndef OWUSB