summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin-Éric Racine <martin-eric.racine@iki.fi>2011-11-13 15:48:29 +0200
committerMartin-Éric Racine <martin-eric.racine@iki.fi>2011-11-13 15:48:29 +0200
commit587d4e40e58e70649968261f73b7fb2078349f4f (patch)
treecf54f01bba20002f7567d10520a30a7798b2e549
parentee52d73fd2c68740b1ff3cdb5b1bf2a6d941090d (diff)
Revised BSD check in 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)