diff options
Diffstat (limited to 'locale/loadlocale.c')
-rw-r--r-- | locale/loadlocale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/locale/loadlocale.c b/locale/loadlocale.c index 544c09a..edbe891 100644 --- a/locale/loadlocale.c +++ b/locale/loadlocale.c @@ -127,7 +127,7 @@ _nl_load_locale (struct loaded_l10nfile *file, int category) #endif filedata = (void *) __mmap ((caddr_t) 0, st.st_size, PROT_READ, MAP_FILE|MAP_COPY|MAP_INHERIT, fd, 0); - if (filedata == (void *) -1) + if (filedata == MAP_FAILED) { if (errno == ENOSYS) { |