r2988 - in glibc-package/trunk/debian: . patches patches/all
Author: sthibaul-guest
Date: 2008-07-13 01:18:55 +0000 (Sun, 13 Jul 2008)
New Revision: 2988
Added:
glibc-package/trunk/debian/patches/all/submitted-fcntl-types.diff
Modified:
glibc-package/trunk/debian/changelog
glibc-package/trunk/debian/patches/series
Log:
* patches/all/submitted-fcntl-types.diff: New patch to add mode_t, off_t and
pid_t definitions to <fcntl.h>. Fixes a lot of FTBFS on hurd and freebsd.
Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog 2008-07-12 15:26:56 UTC (rev 2987)
+++ glibc-package/trunk/debian/changelog 2008-07-13 01:18:55 UTC (rev 2988)
@@ -28,6 +28,8 @@
* patches/hurd-i386/local-pthread_types.diff: New patch to drag pthread
types from hurd headers. Bump the hurd-dev dependency version
accordingly.
+ * patches/all/submitted-fcntl-types.diff: New patch to add mode_t, off_t and
+ pid_t definitions to <fcntl.h>. Fixes a lot of FTBFS on hurd and freebsd.
-- Aurelien Jarno <aurel32@debian.org> Tue, 08 Jul 2008 18:26:28 +0200
Added: glibc-package/trunk/debian/patches/all/submitted-fcntl-types.diff
===================================================================
--- glibc-package/trunk/debian/patches/all/submitted-fcntl-types.diff (rev 0)
+++ glibc-package/trunk/debian/patches/all/submitted-fcntl-types.diff 2008-07-13 01:18:55 UTC (rev 2988)
@@ -0,0 +1,37 @@
+Index: glibc/io/fcntl.h
+===================================================================
+RCS file: /cvs/glibc/libc/io/fcntl.h,v
+retrieving revision 1.43
+diff -u -p -r1.43 fcntl.h
+--- glibc/io/fcntl.h 15 Sep 2007 22:34:56 -0000 1.43
++++ glibc/io/fcntl.h 13 Jul 2008 01:10:02 -0000
+@@ -33,6 +33,29 @@ __BEGIN_DECLS
+ numbers and flag bits for `open', `fcntl', et al. */
+ #include <bits/fcntl.h>
+
++#if defined __USE_XOPEN || defined __USE_XOPEN2K
++/* The Single Unix specification says that some more types are
++ available here. */
++# ifndef __mode_t_defined
++typedef __mode_t mode_t;
++# define __mode_t_defined
++# endif
++
++# ifndef __off_t_defined
++# ifndef __USE_FILE_OFFSET64
++typedef __off_t off_t;
++# else
++typedef __off64_t off_t;
++# endif
++# define __off_t_defined
++# endif
++
++# ifndef __pid_t_defined
++typedef __pid_t pid_t;
++# define __pid_t_defined
++# endif
++#endif /* X/Open */
++
+ /* For XPG all symbols from <sys/stat.h> should also be available. */
+ #ifdef __USE_XOPEN
+ # include <sys/stat.h>
Modified: glibc-package/trunk/debian/patches/series
===================================================================
--- glibc-package/trunk/debian/patches/series 2008-07-12 15:26:56 UTC (rev 2987)
+++ glibc-package/trunk/debian/patches/series 2008-07-13 01:18:55 UTC (rev 2988)
@@ -141,6 +141,7 @@
all/local-pthread-manpages.diff
all/local-remove-manual.diff
all/local-ru_RU.diff
+all/submitted-fcntl-types.diff
any/cvs-epoll_h.diff -p0
any/cvs-ether_line.diff -p0
Reply to: