summaryrefslogtreecommitdiffstats
path: root/contrib/gnu-sort
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2002-06-08 08:16:22 +0000
committerache <ache@FreeBSD.org>2002-06-08 08:16:22 +0000
commitb2e7ac17afeb1a04cc41abab08b1d5d2177718ea (patch)
treebd52eab63cf80238c4097db59ab0c677880e9191 /contrib/gnu-sort
parenteca9ac0d2f4ea7b01a6322598cd3a86139c241f4 (diff)
downloadFreeBSD-src-b2e7ac17afeb1a04cc41abab08b1d5d2177718ea.zip
FreeBSD-src-b2e7ac17afeb1a04cc41abab08b1d5d2177718ea.tar.gz
Use easy way to sense C and POSIX locales, like in GLIBC
Diffstat (limited to 'contrib/gnu-sort')
-rw-r--r--contrib/gnu-sort/lib/hard-locale.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/gnu-sort/lib/hard-locale.c b/contrib/gnu-sort/lib/hard-locale.c
index 01e0ebd..19e7c7d 100644
--- a/contrib/gnu-sort/lib/hard-locale.c
+++ b/contrib/gnu-sort/lib/hard-locale.c
@@ -14,6 +14,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+/* $FreeBSD$ */
#if HAVE_CONFIG_H
# include <config.h>
@@ -62,7 +63,7 @@ hard_locale (int category)
if (p)
{
-# if defined __GLIBC__ && __GLIBC__ >= 2
+# if defined(__FreeBSD__) || (defined __GLIBC__ && __GLIBC__ >= 2)
if (strcmp (p, "C") == 0 || strcmp (p, "POSIX") == 0)
hard = 0;
# else
OpenPOWER on IntegriCloud