Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146230448
D1518.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D1518.id.diff
View Options
Index: head/lib/libmagic/config.h
===================================================================
--- head/lib/libmagic/config.h
+++ head/lib/libmagic/config.h
@@ -1,5 +1,13 @@
/* $FreeBSD$ */
+/* Get __FreeBSD_version. */
+#include <osreldate.h>
+
+/* Only specific versions of FreeBSD support xlocale */
+#if __FreeBSD_version >= 1000002 || (__FreeBSD_version < 1000000 && __FreeBSD_version >= 900506)
+#define FREEBSD_XLOCALE_SUPPORT 1
+#endif
+
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
@@ -48,7 +56,9 @@
#define HAVE_FORK 1
/* Define to 1 if you have the `freelocale' function. */
+#ifdef FREEBSD_XLOCALE_SUPPORT
#define HAVE_FREELOCALE 1
+#endif
/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
#define HAVE_FSEEKO 1
@@ -102,7 +112,9 @@
#define HAVE_MMAP 1
/* Define to 1 if you have the `newlocale' function. */
+#ifdef FREEBSD_XLOCALE_SUPPORT
#define HAVE_NEWLOCALE 1
+#endif
/* Define to 1 if you have the `pread' function. */
#define HAVE_PREAD 1
@@ -195,7 +207,9 @@
#define HAVE_UNISTD_H 1
/* Define to 1 if you have the `uselocale' function. */
+#ifdef FREEBSD_XLOCALE_SUPPORT
#define HAVE_USELOCALE 1
+#endif
/* Define to 1 if you have the `utime' function. */
#define HAVE_UTIME 1
@@ -235,7 +249,9 @@
#define HAVE_WORKING_VFORK 1
/* Define to 1 if you have the <xlocale.h> header file. */
+#ifdef FREEBSD_XLOCALE_SUPPORT
#define HAVE_XLOCALE_H 1
+#endif
/* Define to 1 if you have the <zlib.h> header file. */
#define HAVE_ZLIB_H 1
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 1, 11:15 PM (20 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29128604
Default Alt Text
D1518.id.diff (1 KB)
Attached To
Mode
D1518: Band-aid to let lib/libmagic compile on older branches
Attached
Detach File
Event Timeline
Log In to Comment