From 2493307567916477f9b7862835e1b112b385da2e Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Sun, 25 Jul 2010 09:46:48 -0400 Subject: [PATCH] Cygwin build cleanup (Bug#6715). * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead... * vm-limit.c: ...add 'defined (CYGWIN)' here. --- src/ChangeLog | 5 +++++ src/mem-limits.h | 4 ---- src/vm-limit.c | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 339e7b2beb2..78bd22db812 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-07-25 Ken Brown + + * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead... + * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715). + 2010-07-25 Juanma Barranquero * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT. diff --git a/src/mem-limits.h b/src/mem-limits.h index a550e1464b8..8827c458c02 100644 --- a/src/mem-limits.h +++ b/src/mem-limits.h @@ -34,10 +34,6 @@ extern int etext; # endif #endif -#ifdef CYGWIN -#define BSD4_2 -#endif - #ifdef BSD4_2 #include #include diff --git a/src/vm-limit.c b/src/vm-limit.c index 06801db1a90..a08c300c14d 100644 --- a/src/vm-limit.c +++ b/src/vm-limit.c @@ -100,7 +100,7 @@ get_lim_data (void) } #else -#if !defined (BSD4_2) && !defined (__osf__) +#if !defined (BSD4_2) && !defined (__osf__) && !defined (CYGWIN) #ifdef MSDOS void @@ -173,9 +173,9 @@ static void check_memory_limits (void) { #ifdef REL_ALLOC - extern POINTER (*real_morecore) (SIZE); + extern POINTER (*real_morecore) (); #endif - extern POINTER (*__morecore) (SIZE); + extern POINTER (*__morecore) (); register POINTER cp; unsigned long five_percent; -- 2.39.2