From d7687df5f0d30ad24d90cad49a6755bad7675045 Mon Sep 17 00:00:00 2001 From: Georg Sauthoff Date: Sun, 28 Aug 2016 23:04:52 +0200 Subject: [PATCH] remove getwd() declaration because - it is unused - LEGACY in POSIX.2001, not available in POSIX.2008 - even available via `unistd.h` on Solaris 10 --- include/mk/defs.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/mk/defs.h b/include/mk/defs.h index 022dc88..e164367 100644 --- a/include/mk/defs.h +++ b/include/mk/defs.h @@ -353,16 +353,6 @@ extern void gather_recursive_deps(void); extern char *get_current_path(void); extern int get_job_msg_id(void); extern wchar_t *getmem_wc(register int size); -/* On linux getwd(char *) is defined in 'unistd.h' */ -#ifdef __cplusplus -extern "C" { -#endif -#ifdef __sun -extern char *getwd(char *); -#endif -#ifdef __cplusplus -} -#endif extern void handle_interrupt(int); extern Boolean is_running(Name target); extern void load_cached_names(void);