summaryrefslogtreecommitdiff
path: root/src/geode_msr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/geode_msr.c')
-rw-r--r--src/geode_msr.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/geode_msr.c b/src/geode_msr.c
index 4986013..19dbe67 100644
--- a/src/geode_msr.c
+++ b/src/geode_msr.c
@@ -3,13 +3,14 @@
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
-#include <errno.h>
-#include "os.h"
-#include "geode.h"
-#ifdef __FreeBSD__
+/* Complement BSD variants not found via types.h */
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
#define lseek64 lseek
#define off64_t off_t
#endif
+#include <errno.h>
+#include "os.h"
+#include "geode.h"
static int
_msr_open(void)