diff options
author | Roland McGrath <roland@hack.frob.com> | 2012-07-30 16:09:11 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2012-07-30 16:34:33 -0700 |
commit | bea9b19322c77265033a068ac60c95a37e798a80 (patch) | |
tree | d3fad60d4780a5d86fe5dbedd994c3cd7625890b /intl | |
parent | fc56c5bbc1a0d56b9b49171dd377c73c268ebcfd (diff) | |
download | glibc-bea9b19322c77265033a068ac60c95a37e798a80.tar.gz |
Fix lots of bitrot for stub configurations.
Diffstat (limited to 'intl')
-rw-r--r-- | intl/loadmsgcat.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/intl/loadmsgcat.c b/intl/loadmsgcat.c index 4e34a368be..a217fcce41 100644 --- a/intl/loadmsgcat.c +++ b/intl/loadmsgcat.c @@ -1,5 +1,5 @@ /* Load needed message catalogs. - Copyright (C) 1995-2005, 2007 Free Software Foundation, Inc. + Copyright (C) 1995-2012 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 @@ -27,6 +27,7 @@ # include <config.h> #endif +#include <assert.h> #include <ctype.h> #include <errno.h> #include <fcntl.h> @@ -835,11 +836,13 @@ _nl_load_domain (domain_file, domainbinding) fd = -1; use_mmap = 1; } + + assert (MAP_FAILED == (void *) -1); #endif /* If the data is not yet available (i.e. mmap'ed) we try to load it manually. */ - if (data == MAP_FAILED) + if (data == (struct mo_file_header *) -1) { size_t to_read; char *read_ptr; |