aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2025-01-13 04:25:29 +0000
committerXin LI <delphij@FreeBSD.org>2025-01-13 04:25:29 +0000
commit163951959866377ebf6d9af84a412dd22b1a8983 (patch)
tree30bae0f5cf563dbbe28a09722a8e06ce647fbcf5 /lib
parentc6bf965f5d1d7cf32f26ecd5df0f8a5f5baebb0f (diff)
Diffstat (limited to 'lib')
-rw-r--r--lib/libmagic/config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libmagic/config.h b/lib/libmagic/config.h
index 12cd382ab9bb..d642880d6096 100644
--- a/lib/libmagic/config.h
+++ b/lib/libmagic/config.h
@@ -1,6 +1,9 @@
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
+/* FreeBSD */
+#include <osreldate.h>
+
/* Define if building universal (internal helper macro) */
/* #undef AC_APPLE_UNIVERSAL_BUILD */
@@ -21,8 +24,10 @@
/* Define to 1 if you have the <byteswap.h> header file. */
#ifndef __APPLE__ /* Cross building tools on macOS */
+#if __FreeBSD_version >= 1400079 || (__FreeBSD_version < 1400000 && __FreeBSD_version >= 1302500)
#define HAVE_BYTESWAP_H 1
#endif
+#endif
/* Define to 1 if you have the <bzlib.h> header file. */
/* #undef HAVE_BZLIB_H */