From f6ce72346a701a7024241c7f44529b772613ca14 Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Sun, 14 May 2017 20:50:16 -0500 Subject: [PATCH] Remove GNO-specific hack for defining a buffer size. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I’m not sure why this was needed originally, but at any rate it doesn't seem to be necessary with current GNO and ORCA/C versions. --- dmake/unix/gno/sysintf.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/dmake/unix/gno/sysintf.c b/dmake/unix/gno/sysintf.c index a4b1ba0..fd56a6a 100644 --- a/dmake/unix/gno/sysintf.c +++ b/dmake/unix/gno/sysintf.c @@ -394,16 +394,8 @@ Epilog(int ret_code) PUBLIC char * Get_current_dir(void) { -#if defined (GNO) -#define PATH_MAX2 66 -#if ((PATH_MAX + 2) != PATH_MAX2 ) -#error "sysintf.c: ensure PATH_MAX2 is same as PATH_MAX + 2" -#endif - - static char buf[PATH_MAX2]; /* must be identical to PATH_MAX + 2 */ -#else static char buf[PATH_MAX+2]; -#endif + return(getcwd(buf, sizeof(buf))); }