r4196 - in glibc-package/trunk/debian: . patches patches/any
Author: aurel32
Date: 2010-02-13 10:37:39 +0000 (Sat, 13 Feb 2010)
New Revision: 4196
Added:
glibc-package/trunk/debian/patches/any/submitted-stat-issock.diff
Modified:
glibc-package/trunk/debian/changelog
glibc-package/trunk/debian/patches/series
Log:
* Add patches/any/submitted-stat-issock.diff to define the S_ISSOCK
macro starting with POSIX 2001. Closes: #569517.
Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog 2010-02-13 10:13:55 UTC (rev 4195)
+++ glibc-package/trunk/debian/changelog 2010-02-13 10:37:39 UTC (rev 4196)
@@ -14,8 +14,10 @@
SOCK_CLOEXEC. Closes: #569646.
* Update patches/hppa/submitted-sock_nonblock.diff to also fix
SOCK_CLOEXEC.
+ * Add patches/any/submitted-stat-issock.diff to define the S_ISSOCK
+ macro starting with POSIX 2001. Closes: #569517.
- -- Aurelien Jarno <aurel32@debian.org> Sat, 13 Feb 2010 11:09:45 +0100
+ -- Aurelien Jarno <aurel32@debian.org> Sat, 13 Feb 2010 11:36:02 +0100
eglibc (2.10.2-6) unstable; urgency=low
Added: glibc-package/trunk/debian/patches/any/submitted-stat-issock.diff
===================================================================
--- glibc-package/trunk/debian/patches/any/submitted-stat-issock.diff (rev 0)
+++ glibc-package/trunk/debian/patches/any/submitted-stat-issock.diff 2010-02-13 10:37:39 UTC (rev 4196)
@@ -0,0 +1,18 @@
+2010-02-13 Aurelien Jarno <aurelien@aurel32.net>
+
+ * io/sys/stat.h: The S_ISSOCK macro has been mandatory since
+ POSIX 2001.
+
+diff --git a/io/sys/stat.h b/io/sys/stat.h
+index 733a927..f2d4d5b 100644
+--- a/io/sys/stat.h
++++ b/io/sys/stat.h
+@@ -143,7 +143,7 @@ __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)
+ #endif
Modified: glibc-package/trunk/debian/patches/series
===================================================================
--- glibc-package/trunk/debian/patches/series 2010-02-13 10:13:55 UTC (rev 4195)
+++ glibc-package/trunk/debian/patches/series 2010-02-13 10:37:39 UTC (rev 4196)
@@ -236,4 +236,4 @@
any/cvs-malloc_info-init.diff
any/submitted-stack-guard-quick-randomization.diff
any/submitted-leading-zero-stack-guard.diff
-
+any/submitted-stat-issock.diff
Reply to: