Remove leftover of alpha support for config(8)--we have MAP_FAILED
globally defined.
This commit is contained in:
parent
eb0a4a4b80
commit
fcba95d49e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user