From: David Levine Date: Sun, 15 Apr 2012 15:02:23 +0000 (-0500) Subject: Added declaration of __srget() on Cygwin. Used point solution because X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=dbe9e9eb57cb563052a672ce37f258f6b9b74e01;p=mmh Added declaration of __srget() on Cygwin. Used point solution because this shouldn't be needed for much longer. --- diff --git a/MACHINES b/MACHINES index 4506620..194ac9c 100644 --- a/MACHINES +++ b/MACHINES @@ -45,8 +45,6 @@ Cygwin: Be sure to install Cygwin packages libncurses-devel and libncurses10, in the Libs category. -The few minor compile warnings can be ignored. - -------------------------------------- HPUX: diff --git a/sbr/m_getfld.c b/sbr/m_getfld.c index 585df64..e139505 100644 --- a/sbr/m_getfld.c +++ b/sbr/m_getfld.c @@ -188,6 +188,11 @@ static int (*eom_action)(int) = NULL; # define _cnt _r /* Retch */ # define _filbuf __srget /* Puke */ # define DEFINED__FILBUF_TO_SOMETHING_SPECIFIC + +# if defined __CYGWIN__ + /* Cygwin's stdio.h does not declare __srget(). */ + int __srget(FILE *); +# endif /* __CYGWIN__ */ #endif #ifndef DEFINED__FILBUF_TO_SOMETHING_SPECIFIC