summaryrefslogtreecommitdiff
path: root/devel/SOPE/patches/patch-sope-core_NGStreams_NGDescriptorFunctions.m
blob: 01f330c8b34ab087aae2842d3d2c04a7eff6fe66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-sope-core_NGStreams_NGDescriptorFunctions.m,v 1.1 2016/12/15 23:57:16 wiedi 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