$NetBSD: patch-sope-core_NGStreams_NGDescriptorFunctions.m,v 1.1 2016/12/15 23:57:16 wiedi Exp $ ttyname_r comes from which is already included --- sope-core/NGStreams/NGDescriptorFunctions.m.orig 2016-08-17 12:26:04.000000000 +0000 +++ sope-core/NGStreams/NGDescriptorFunctions.m @@ -387,9 +387,6 @@ NSString *NGDescriptorGetTtyName(int _fd #endif { #if HAVE_TTYNAME_R -# ifndef sparc - extern int ttyname_r(int, char*, size_t); -# endif # ifdef _POSIX_PATH_MAX char namebuffer[_POSIX_PATH_MAX + 128]; # else