diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2012-02-25 22:50:21 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2012-02-25 22:50:21 +0000 |
commit | c810422a02f29470c0349a3f8bb8aed8bf368e09 (patch) | |
tree | 734a5c79ce8f2fdd2c7a463ac9a31da8fa128781 /hwaccess.c | |
parent | 8bc5b350d463e88d87f5188e5acc3ace9f54a100 (diff) | |
download | flashrom-c810422a02f29470c0349a3f8bb8aed8bf368e09.zip flashrom-c810422a02f29470c0349a3f8bb8aed8bf368e09.tar.gz |
Support Debian/kFreeBSD
Tested-by: Robert Millan <rmh@debian.org>
Tested-by: Uwe Hermann <uwe@hermann-uwe.de>
Corresponding to flashrom svn r1507.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'hwaccess.c')
-rw-r--r-- | hwaccess.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -40,7 +40,7 @@ static inline void sync_primitive(void) { } -#if defined(__FreeBSD__) || defined(__DragonFly__) +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) int io_fd; #endif @@ -52,7 +52,7 @@ void get_io_perms(void) #else #if defined (__sun) && (defined(__i386) || defined(__amd64)) if (sysi86(SI86V86, V86SC_IOPL, PS_IOPL) != 0) { -#elif defined(__FreeBSD__) || defined (__DragonFly__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined (__DragonFly__) if ((io_fd = open("/dev/io", O_RDWR)) < 0) { #else if (iopl(3) != 0) { @@ -71,7 +71,7 @@ void get_io_perms(void) void release_io_perms(void) { -#if defined(__FreeBSD__) || defined(__DragonFly__) +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) close(io_fd); #endif } |