summaryrefslogtreecommitdiff
path: root/lib/libc/string
diff options
context:
space:
mode:
authorjmc <jmc@NetBSD.org>2004-06-20 22:20:14 +0000
committerjmc <jmc@NetBSD.org>2004-06-20 22:20:14 +0000
commitb2f782612fe8c90c33dbac39f46b984e155e9d35 (patch)
tree621fd229ae597b565c516ab4afd72b041cdfa672 /lib/libc/string
parentfa985b27a7846ade156387f98a002515d72661d9 (diff)
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of NetBSD harder, not easier (and also makes the resulting tools 'different') Wrap all required code with the inclusion of nbtool_config.h, attempt to only use POSIX code in all places (or when reasonable test w. configure and provide definitions: ala u_int, etc). Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86 NetBSD current (x86 and amd64) and Solaris 9. Fixes PR's: PR#17762 PR#25944
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/strmode.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/string/strmode.c b/lib/libc/string/strmode.c
index 1aa7e4be764..9bf1dadfb80 100644
--- a/lib/libc/string/strmode.c
+++ b/lib/libc/string/strmode.c
@@ -1,4 +1,4 @@
-/* $NetBSD: strmode.c,v 1.15 2003/08/07 16:43:51 agc Exp $ */
+/* $NetBSD: strmode.c,v 1.16 2004/06/20 22:20:15 jmc Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)strmode.c 8.3 (Berkeley) 8/15/94";
#else
-__RCSID("$NetBSD: strmode.c,v 1.15 2003/08/07 16:43:51 agc Exp $");
+__RCSID("$NetBSD: strmode.c,v 1.16 2004/06/20 22:20:15 jmc Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -80,9 +80,11 @@ strmode(mode, p)
case S_IFLNK: /* symbolic link */
*p++ = 'l';
break;
+#ifdef S_IFSOCK
case S_IFSOCK: /* socket */
*p++ = 's';
break;
+#endif
#ifdef S_IFIFO
case S_IFIFO: /* fifo */
*p++ = 'p';