diff --git a/src/system/libroot/posix/glibc/ctype/Jamfile b/src/system/libroot/posix/glibc/ctype/Jamfile index b51366aa7c..13465d770e 100644 --- a/src/system/libroot/posix/glibc/ctype/Jamfile +++ b/src/system/libroot/posix/glibc/ctype/Jamfile @@ -6,6 +6,7 @@ SubDirHdrs $(OBOS_TOP) src system libroot posix glibc locale ; SubDirHdrs $(OBOS_TOP) src system libroot posix glibc ; KernelMergeObject posix_gnu_ctype.o : + ctype.c ctype-info.c : -fPIC -DPIC ; diff --git a/src/system/libroot/posix/glibc/ctype/ctype.c b/src/system/libroot/posix/glibc/ctype/ctype.c index 1b606c5b2d..4bcbd30ef7 100644 --- a/src/system/libroot/posix/glibc/ctype/ctype.c +++ b/src/system/libroot/posix/glibc/ctype/ctype.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991,92,97,99,2002 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1997, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -36,11 +36,6 @@ func (isspace, _ISspace) func (isupper, _ISupper) func (isxdigit, _ISxdigit) -#define __ctype_tolower \ - ((int32_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_TOLOWER) + 128) -#define __ctype_toupper \ - ((int32_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_TOUPPER) + 128) - int tolower (int c) {