Author: aurel32
Date: 2015-12-13 18:18:42 +0000 (Sun, 13 Dec 2015)
New Revision: 6816

Added:
   glibc-package/branches/glibc-2.22/debian/patches/any/local-stdio-lock.diff
Modified:
   glibc-package/branches/glibc-2.22/debian/changelog
   glibc-package/branches/glibc-2.22/debian/patches/series
Log:
Revert r6813, this is still need for Hurd.


Modified: glibc-package/branches/glibc-2.22/debian/changelog
===================================================================
--- glibc-package/branches/glibc-2.22/debian/changelog  2015-12-12 18:40:50 UTC 
(rev 6815)
+++ glibc-package/branches/glibc-2.22/debian/changelog  2015-12-13 18:18:42 UTC 
(rev 6816)
@@ -18,8 +18,6 @@
     another way.
   * debian/patches/alpha/submitted-rtld-fPIC.diff: drop, fixed upstream
     another way.
-  * debian/patches/any/local-stdio-lock.diff: drop, it was needed for
-    LinuxThreads support.
   * debian/patches/any/unsubmitted-scanf-includes.diff: replace the hack by
     the upstream fix patches/any/cvs-bits-libc-stdio-lock.diff. This also
     stop installing <bits/libc-lock.h> and <bits/stdio-lock.h>.  Closes:

Added: 
glibc-package/branches/glibc-2.22/debian/patches/any/local-stdio-lock.diff
===================================================================
--- glibc-package/branches/glibc-2.22/debian/patches/any/local-stdio-lock.diff  
                        (rev 0)
+++ glibc-package/branches/glibc-2.22/debian/patches/any/local-stdio-lock.diff  
2015-12-13 18:18:42 UTC (rev 6816)
@@ -0,0 +1,32 @@
+---
+ bits/stdio-lock.h |   17 +++++++++++++----
+ 1 file changed, 13 insertions(+), 4 deletions(-)
+
+--- a/bits/stdio-lock.h
++++ b/bits/stdio-lock.h
+@@ -46,12 +46,21 @@
+ 
+ #if defined _LIBC && IS_IN (libc)
+ # define _IO_acquire_lock(_fp) \
+-  _IO_cleanup_region_start ((void (*) (void *)) _IO_funlockfile, (_fp));      
\
+-  _IO_flockfile (_fp)
++  { \
++  _IO_FILE *_IO_acquire_lock_file = _fp; \
++  __libc_cleanup_region_start (1, (void (*) (void *)) _IO_acquire_lock_fct, 
&_IO_acquire_lock_file); \
++  _IO_flockfile (_IO_acquire_lock_file)
++
++# define _IO_acquire_lock_clear_flags2(_fp) \
++  { \
++  _IO_FILE *_IO_acquire_lock_file = _fp; \
++  __libc_cleanup_region_start (1, (void (*) (void *)) 
_IO_acquire_lock_clear_flags2_fct, &_IO_acquire_lock_file); \
++  _IO_flockfile (_IO_acquire_lock_file)
+ 
+ # define _IO_release_lock(_fp) \
+-  _IO_funlockfile (_fp);                                                    \
+-  _IO_cleanup_region_end (0)
++  __libc_cleanup_region_end (1); \
++   }
++
+ #endif
+ 
+ #endif /* bits/stdio-lock.h */

Modified: glibc-package/branches/glibc-2.22/debian/patches/series
===================================================================
--- glibc-package/branches/glibc-2.22/debian/patches/series     2015-12-12 
18:40:50 UTC (rev 6815)
+++ glibc-package/branches/glibc-2.22/debian/patches/series     2015-12-13 
18:18:42 UTC (rev 6816)
@@ -204,6 +204,7 @@
 any/local-no-pagesize.diff
 any/local-nss-upgrade.diff
 any/local-stubs_h.diff
+any/local-stdio-lock.diff
 any/local-tcsetaddr.diff
 any/local-tst-mktime2.diff
 any/submitted-nis-netgrp.diff

Reply via email to