Allow header to work with C++.

Request by chris@ for an upcoming port.
ok chris@
This commit is contained in:
bcallah 2021-06-07 01:00:45 +00:00
parent 7a7711347d
commit 5c904bb59f
2 changed files with 16 additions and 1 deletions

View File

@ -1,10 +1,11 @@
# $OpenBSD: Makefile,v 1.3 2019/07/12 20:44:37 sthen Exp $
# $OpenBSD: Makefile,v 1.4 2021/06/07 01:00:45 bcallah Exp $
# Only used by lang/flang; only supported on amd64 and arm64
ONLY_FOR_ARCHS = amd64 arm64
COMMENT = port of POSIX asynchronous I/O routines from DragonFly BSD
DISTNAME = libaio_compat-5.2.2
REVISION = 0
CATEGORIES = devel
SHARED_LIBS += aio_compat 0.0 # 0.0

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-aio_compat_h,v 1.1 2021/06/07 01:00:45 bcallah Exp $
Index: aio_compat.h
--- aio_compat.h.orig
+++ aio_compat.h
@@ -128,7 +128,7 @@ int aio_write(struct aiocb *);
* "acb_list" is an array of "nacb_listent" I/O control blocks.
* when all I/Os are complete, the optional signal "sig" is sent.
*/
-int lio_listio(int, struct aiocb * __restrict const[__restrict_arr], int,
+int lio_listio(int, struct aiocb * __restrict const[], int,
struct sigevent * __restrict);
/*