Date: Fri, 28 Apr 2023 20:15:52 GMT From: Doug Ambrisko <ambrisko@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: e133103ab6b3 - main - mrsas(4) fix build on targets that don't define PTRIN. Message-ID: <202304282015.33SKFqEg041794@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by ambrisko: URL: https://cgit.FreeBSD.org/src/commit/?id=e133103ab6b35d96d06f24825cff6caa298f595a commit e133103ab6b35d96d06f24825cff6caa298f595a Author: Doug Ambrisko <ambrisko@FreeBSD.org> AuthorDate: 2023-04-28 20:12:32 +0000 Commit: Doug Ambrisko <ambrisko@FreeBSD.org> CommitDate: 2023-04-28 20:15:43 +0000 mrsas(4) fix build on targets that don't define PTRIN. --- sys/dev/mrsas/mrsas_ioctl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/mrsas/mrsas_ioctl.c b/sys/dev/mrsas/mrsas_ioctl.c index b8d88c164e81..7f1d9a91ba0f 100644 --- a/sys/dev/mrsas/mrsas_ioctl.c +++ b/sys/dev/mrsas/mrsas_ioctl.c @@ -55,6 +55,10 @@ struct mrsas_passthru_cmd { int complete; }; +#ifndef PTRIN +#define PTRIN(p) ((void *)(uintptr_t)(p)) +#endif + /* * Function prototypes */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304282015.33SKFqEg041794>