zephyr/lib/posix/options/mprotect.c
Chris Friedt 0acea8d5e6 posix: options: mprotect: include toolchain header
Include zephyr/toolchain.h to get access to ARG_UNUSED().

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-01-09 15:49:42 +01:00

22 lines
358 B
C

/*
* Copyright (c) 2024, Tenstorrent AI ULC
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <errno.h>
#include <stddef.h>
#include <sys/types.h>
#include <zephyr/posix/sys/mman.h>
#include <zephyr/toolchain.h>
int mprotect(void *addr, size_t len, int prot)
{
ARG_UNUSED(addr);
ARG_UNUSED(len);
ARG_UNUSED(prot);
errno = ENOSYS;
return -1;
}