Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/exec_ptrace: fix build without precess_vm_readv()
Commit 32f4b98 (sudo frontend: silence most -Wconversion warnings.) broke the build on C libraries that miss process_vm_readv(), like uClibc-ng. Indeed, the ssize_t nwritten is declared guarded by HAVE_PROCESS_VM_READV, but is then re-assigned and used a few lines below, outside any guard. Fix that by always declaring the object, as it is always needed. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
- Loading branch information