From dbe9e9eb57cb563052a672ce37f258f6b9b74e01 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sun, 15 Apr 2012 10:02:23 -0500 Subject: [PATCH] Added declaration of __srget() on Cygwin. Used point solution because this shouldn't be needed for much longer. --- MACHINES | 2 -- sbr/m_getfld.c | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) 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 -- 1.7.10.4