summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2018-11-05 08:23:41 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2018-11-05 08:23:41 +0000
commitcecf1f096e82006d6c9e3371fdea05125f38e03e (patch)
treeabc4ae1480031cdbb165dec6efe69ca14084cd4e /include
parent57933f13bb51bbf48a0c323eca44b7457aa56b98 (diff)
Implement C11's aligned_alloc(3). ok guenther@
Diffstat (limited to 'include')
-rw-r--r--include/stdlib.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index cc359ab32e1..d546444c1d7 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdlib.h,v 1.72 2017/09/05 03:16:13 schwarze Exp $ */
+/* $OpenBSD: stdlib.h,v 1.73 2018/11/05 08:23:40 otto Exp $ */
/* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */
/*-
@@ -221,6 +221,11 @@ unsigned long long
strtoull(const char *__restrict, char **__restrict, int);
#endif
+#if __ISO_C_VISIBLE >= 2011
+void *
+ aligned_alloc(size_t, size_t);
+#endif
+
/*
* The Open Group Base Specifications, Issue 6; IEEE Std 1003.1-2001 (POSIX)
*/