Remove leftover of alpha support for config(8)--we have MAP_FAILED

globally defined.
This commit is contained in:
Wojciech A. Koszek 2009-02-07 11:12:30 +00:00
parent eb0a4a4b80
commit fcba95d49e

View File

@ -565,9 +565,6 @@ moveifchanged(const char *from_name, const char *to_name)
if (!changed) {
p = mmap(NULL, tsize, PROT_READ, MAP_SHARED, from_fd, (off_t)0);
#ifndef MAP_FAILED
#define MAP_FAILED ((caddr_t) -1)
#endif
if (p == MAP_FAILED)
err(EX_OSERR, "mmap %s", from_name);
q = mmap(NULL, tsize, PROT_READ, MAP_SHARED, to_fd, (off_t)0);