blob: d5be64a5eba17de22b10ae76f024a97d65925d12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-cc,v 1.3 2003/10/20 12:07:23 grant Exp $
--- interface/utils.h.orig 2000-04-20 08:41:04.000000000 +1000
+++ interface/utils.h
@@ -1,4 +1,18 @@
+#ifdef __linux__
#include <endian.h>
+#endif
+#ifdef __NetBSD__
+#include <sys/param.h>
+#if __NetBSD_Version__ >= 104010000
+#include <sys/endian.h>
+#else
+#include <machine/endian.h>
+#include <machine/bswap.h>
+#endif
+#include <err.h> /* XXX */
+#elif defined(__FreeBSD__)
+#include <machine/endian.h>
+#endif
#include <stdio.h>
#include <errno.h>
#include <string.h>
|