FreeBSD support
Signed-off-by: Michael Buesch <mb@bu3sch.de>
ifeq ($(C),1)
QUIET_SPARSE = $(Q:@=@echo ' SPARSE '$@;)$(SPARSE)
else
-QUIET_SPARSE = @/bin/true
+QUIET_SPARSE = @true
endif
PREFIX ?= /usr/local
#include <sys/stat.h>
#include <sys/types.h>
-#ifdef __DragonFly__
+#if defined(__DragonFly__) || defined(__FreeBSD__)
#include <sys/endian.h>
#else
#include <byteswap.h>
#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
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