Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/testsuite/libltp/lib')
-rw-r--r--winsup/testsuite/libltp/lib/get_high_address.c9
-rw-r--r--winsup/testsuite/libltp/lib/search_path.c2
2 files changed, 7 insertions, 4 deletions
diff --git a/winsup/testsuite/libltp/lib/get_high_address.c b/winsup/testsuite/libltp/lib/get_high_address.c
index 3b4105743..5fe1e81b2 100644
--- a/winsup/testsuite/libltp/lib/get_high_address.c
+++ b/winsup/testsuite/libltp/lib/get_high_address.c
@@ -1,5 +1,3 @@
-/* $Header$ */
-
/*
* (C) COPYRIGHT CRAY RESEARCH, INC.
* UNPUBLISHED PROPRIETARY INFORMATION.
@@ -7,9 +5,16 @@
*/
#include <unistd.h>
+#ifdef __CYGWIN__
+#include <windows.h>
+#endif
char *
get_high_address()
{
+#ifdef __CYGWIN__
+ return VirtualAlloc (NULL, 4096, MEM_COMMIT, PAGE_NOACCESS) + 2048;
+#else
return (char *)sbrk(0) + 16384;
+#endif
}
diff --git a/winsup/testsuite/libltp/lib/search_path.c b/winsup/testsuite/libltp/lib/search_path.c
index d6570cb59..6663da507 100644
--- a/winsup/testsuite/libltp/lib/search_path.c
+++ b/winsup/testsuite/libltp/lib/search_path.c
@@ -1,5 +1,3 @@
-/* $Header$ */
-
/*
* (C) COPYRIGHT CRAY RESEARCH, INC.
* UNPUBLISHED PROPRIETARY INFORMATION.