aboutsummaryrefslogtreecommitdiff
path: root/io/sys
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2010-04-04 01:51:01 -0700
committerUlrich Drepper <drepper@redhat.com>2010-04-04 01:51:01 -0700
commit952df0afdca2333e9fae7d62a36077c348d2df93 (patch)
treee5c48e2a2b4eb47cf549e5022e967be0957a2eef /io/sys
parent9e37946dba22b53c5108eef777e867f93c894502 (diff)
downloadglibc-952df0afdca2333e9fae7d62a36077c348d2df93.zip
glibc-952df0afdca2333e9fae7d62a36077c348d2df93.tar.gz
glibc-952df0afdca2333e9fae7d62a36077c348d2df93.tar.bz2
Fix definition and testing of S_ISSOCK.
Diffstat (limited to 'io/sys')
-rw-r--r--io/sys/stat.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/io/sys/stat.h b/io/sys/stat.h
index 733a927..ac740ca 100644
--- a/io/sys/stat.h
+++ b/io/sys/stat.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1995-2004, 2005, 2006, 2007, 2009
+/* Copyright (C) 1991, 1992, 1995-2004, 2005, 2006, 2007, 2009, 2010
Free Software Foundation, Inc.
This file is part of the GNU C Library.
@@ -143,9 +143,11 @@ __BEGIN_DECLS
# define S_ISLNK(mode) 0
#endif
-#if (defined __USE_BSD || defined __USE_UNIX98) \
+#if (defined __USE_BSD || defined __USE_UNIX98 || defined __USE_XOPEN2K) \
&& defined __S_IFSOCK
# define S_ISSOCK(mode) __S_ISTYPE((mode), __S_IFSOCK)
+#elif defined __USE_XOPEN2K
+# define S_ISSOCK(mode) 0
#endif
/* These are from POSIX.1b. If the objects are not implemented using separate