From 78fdefb2be2df91d0c9cf19de515a57052a26a15 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sat, 8 Jun 2002 08:16:22 +0000 Subject: [PATCH] Use easy way to sense C and POSIX locales, like in GLIBC --- contrib/gnu-sort/lib/hard-locale.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/gnu-sort/lib/hard-locale.c b/contrib/gnu-sort/lib/hard-locale.c index 01e0ebdd700..19e7c7dc5b4 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 @@ -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