summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2025-11-10 00:55:06 -0800
committerXin LI <delphij@FreeBSD.org>2025-11-10 00:55:06 -0800
commitd5cb458b4b58b0f0b3c058a32439f232fd5455ca (patch)
treed4ad2db82c05abb5b2dd3d5177337b992392e192 /usr.bin
parentdbb34d496708a37763d3d8bf6782991dee10d17e (diff)
parenta1320769a9f7fd8fe7e039f915f502bb43376909 (diff)
MFV: less v685.
MFC after: 3 days
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/less/defines.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/usr.bin/less/defines.h b/usr.bin/less/defines.h
index 544749e3bddd..d95ff956bd37 100644
--- a/usr.bin/less/defines.h
+++ b/usr.bin/less/defines.h
@@ -122,10 +122,19 @@
#define LESSKEYINFILE_SYS "/etc/syslesskey"
#define LESSHISTFILE ".lesshst"
-
-/* Settings always true on Unix. */
+/* Autodetect mingw */
+#if defined(__MINGW32__)
+/*
+ * Define MSDOS_COMPILER if compiling under Microsoft C.
+ */
+#define MSDOS_COMPILER WIN32C
/*
+ * Pathname separator character.
+ */
+#define PATHNAME_SEP "\\"
+#else
+/*
* Define MSDOS_COMPILER if compiling under Microsoft C.
*/
#define MSDOS_COMPILER 0
@@ -134,6 +143,9 @@
* Pathname separator character.
*/
#define PATHNAME_SEP "/"
+#endif
+
+/* Settings always true on Unix. */
/*
* The value returned from tgetent on success.
@@ -144,7 +156,7 @@
/*
* HAVE_ANSI_PROTOS is 1 if your compiler supports ANSI function prototypes.
*/
-#define HAVE_ANSI_PROTOS 1
+#define HAVE_ANSI_PROTOS 1
/*
* HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.