From 2f8033d6067fff3e7d77bb2174a9564bd7199cea Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 1 Apr 1995 09:01:49 +0000 Subject: Sat Apr 1 00:08:06 1995 Roland McGrath * locale/loadlocale.c (_nl_load_locale) [MAP_FILE]: Define it zero if undefined. * string/strxfrm.c: Just copy the string (for now). * string/strcoll.c: Just call strcmp (for now). * mach/Makefile (lock): Add mutex-init. * mach/mutex-solid.c (_cthread_mutex_lock_routine, _cthread_mutex_unlock_routine): Variables removed. (__mutex_lock_solid, __mutex_unlock_solid): Don't use them; just stub. (__mutex_init): Function moved to new file mutex-init.c. * mach/mutex-init.c: New file, broken out of mutex-solid.c. --- locale/loadlocale.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'locale') diff --git a/locale/loadlocale.c b/locale/loadlocale.c index 8066fbbaa3..f3e8e4ad9b 100644 --- a/locale/loadlocale.c +++ b/locale/loadlocale.c @@ -101,6 +101,10 @@ _nl_load_locale (int category, char **name) #ifndef MAP_COPY /* Linux seems to lack read-only copy-on-write. */ #define MAP_COPY MAP_PRIVATE +#endif +#ifndef MAP_FILE + /* Some systems do not have this flag; it is superfluous. */ +#define MAP_FILE 0 #endif filedata = (void *) __mmap ((caddr_t) 0, st.st_size, PROT_READ, MAP_FILE|MAP_COPY, fd, 0); -- cgit v1.2.3