]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Get prototype from system header.
authorFlorian Krohm <florian@eich-krohm.de>
Tue, 12 May 2015 21:44:48 +0000 (21:44 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Tue, 12 May 2015 21:44:48 +0000 (21:44 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15220

none/tests/linux/mremap4.c

index 1f83dab31eb673f6453b09462c088c6b8c6021a2..3fe2307de7a8d5969c062351d736160f6700f494 100644 (file)
@@ -1,12 +1,11 @@
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
 #include <assert.h>
 #include <sys/ipc.h>
 #include <sys/shm.h>
 #include <sys/stat.h>
-
-
-extern void *mremap(void *, size_t, size_t, int, ...);
+#include <sys/mman.h>
 
 int main()
 {