summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatthieu <matthieu@openbsd.org>2002-08-27 16:43:51 +0000
committermatthieu <matthieu@openbsd.org>2002-08-27 16:43:51 +0000
commitf3785b680ea6c70c84ec0326b088d1d3a40b6579 (patch)
treed3dee542a4ec849130bf126677b9c195d9c2269b
parentA test for non executable heap / mprotect. Ok art@ (diff)
downloadwireguard-openbsd-f3785b680ea6c70c84ec0326b088d1d3a40b6579.tar.xz
wireguard-openbsd-f3785b680ea6c70c84ec0326b088d1d3a40b6579.zip
Add <stdlib.h> for malloc prototype
-rw-r--r--regress/sys/kern/nxheap-mprotect/nxheap-mprotect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/regress/sys/kern/nxheap-mprotect/nxheap-mprotect.c b/regress/sys/kern/nxheap-mprotect/nxheap-mprotect.c
index 17d08c2fd1f..6a6b8b2c37c 100644
--- a/regress/sys/kern/nxheap-mprotect/nxheap-mprotect.c
+++ b/regress/sys/kern/nxheap-mprotect/nxheap-mprotect.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nxheap-mprotect.c,v 1.1 2002/08/27 16:37:42 matthieu Exp $ */
+/* $OpenBSD: nxheap-mprotect.c,v 1.2 2002/08/27 16:43:51 matthieu Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -33,6 +33,7 @@
#include <stdio.h>
#include <signal.h>
#include <string.h>
+#include <stdlib.h>
#define SIZE 256 /* assuming the testfly() will fit */