summaryrefslogtreecommitdiff
path: root/hints/netbsd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hints/netbsd.sh')
-rw-r--r--hints/netbsd.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/hints/netbsd.sh b/hints/netbsd.sh
index e82a3d1b30..11fa30cce3 100644
--- a/hints/netbsd.sh
+++ b/hints/netbsd.sh
@@ -103,6 +103,15 @@ case "$osvers" in
;;
esac
+# @20070922: setlocale() doesn't support LC_COLLATE and LC_NUMERIC
+case "$osvers" in
+2.*|3.*|4.*)
+ # next two lines should start at column 0
+locale_cflags='ccflags="$ccflags -DNO_LOCALE_COLLATE -DNO_LOCALE_NUMERIC"'
+sv_cflags='ccflags="$ccflags -DNO_LOCALE_COLLATE"'
+ ;;
+esac
+
# These are obsolete in any netbsd.
d_setrgid="$undef"
d_setruid="$undef"