Module Name: src
Committed By: palle
Date: Sat Jul 8 19:10:00 UTC 2023
Modified Files:
src/tools/compat: compat_defs.h
Log Message:
Add support for missing NAME_MAX when building on Solaris hosts
To generate a diff of this commit:
cvs rdiff -u -r1.120 -r1.121 src/tools/compat/compat_defs.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tools/compat/compat_defs.h
diff -u src/tools/compat/compat_defs.h:1.120 src/tools/compat/compat_defs.h:1.121
--- src/tools/compat/compat_defs.h:1.120 Sun May 30 10:39:41 2021
+++ src/tools/compat/compat_defs.h Sat Jul 8 19:10:00 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_defs.h,v 1.120 2021/05/30 10:39:41 cjep Exp $ */
+/* $NetBSD: compat_defs.h,v 1.121 2023/07/08 19:10:00 palle Exp $ */
#ifndef __NETBSD_COMPAT_DEFS_H__
#define __NETBSD_COMPAT_DEFS_H__
@@ -31,6 +31,17 @@
#endif /* __linux__ && HAVE_FEATURES_H */
/*
+ * Solaris:
+ * No NAME_MAX define is available (as documented in the Solaris
+ * limits.h file), so use the XOPEN defined constant.
+ */
+
+#if defined(__sun__)
+#define NAME_MAX _XOPEN_NAME_MAX
+#endif
+
+
+/*
* Type substitutes.
* These are controlled via HAVE_TYPE protections and some of them are needed
* in other header files (in the build tree not in the host). This is because