From: Michael Buesch Date: Fri, 18 Feb 2011 22:52:37 +0000 (+0100) Subject: From: grarpamp X-Git-Tag: b43-fwcutter-014~3 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=04eb63ab732c826bd3ac4326d7937901f988dc98;p=b43-tools.git From: grarpamp FreeBSD support Signed-off-by: Michael Buesch --- diff --git a/fwcutter/Makefile b/fwcutter/Makefile index dbd096f..06bac17 100644 --- a/fwcutter/Makefile +++ b/fwcutter/Makefile @@ -12,7 +12,7 @@ QUIET_DEPEND = $(Q:@=@echo ' DEPEND '$@;)$(CC) ifeq ($(C),1) QUIET_SPARSE = $(Q:@=@echo ' SPARSE '$@;)$(SPARSE) else -QUIET_SPARSE = @/bin/true +QUIET_SPARSE = @true endif PREFIX ?= /usr/local diff --git a/fwcutter/fwcutter.c b/fwcutter/fwcutter.c index 79e351f..dcd92ce 100644 --- a/fwcutter/fwcutter.c +++ b/fwcutter/fwcutter.c @@ -38,7 +38,7 @@ #include #include -#ifdef __DragonFly__ +#if defined(__DragonFly__) || defined(__FreeBSD__) #include #else #include @@ -48,7 +48,7 @@ #include "fwcutter.h" #include "fwcutter_list.h" -#ifdef __DragonFly__ +#if defined(__DragonFly__) || defined(__FreeBSD__) #define V3_FW_DIRNAME "v3" #define V4_FW_DIRNAME "v4" #else diff --git a/fwcutter/fwcutter.h b/fwcutter/fwcutter.h index 4a887b6..783c6b4 100644 --- a/fwcutter/fwcutter.h +++ b/fwcutter/fwcutter.h @@ -15,7 +15,7 @@ typedef uint16_t be16_t; /* Big-endian 16bit */ typedef uint32_t be32_t; /* Big-endian 32bit */ -#ifdef __DragonFly__ +#if defined(__DragonFly__) || defined(__FreeBSD__) #define bswap_16 bswap16 #define bswap_32 bswap32 #endif