$NetBSD: patch-sope-core_NGStreams_NGDescriptorFunctions.m,v 1.3 2025/02/20 14:38:18 manu Exp $

ttyname_r comes from <unistd.h> 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
