summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-03-27 04:00:20 +0000
committerIgor Pashev <pashev.igor@gmail.com>2013-03-27 04:00:20 +0000
commita61d729dba82c9fe3d3a1a013b0ea50bb218ce0d (patch)
tree1865d1bfcdcbba5f726d84f80aa134a519fa4ac8
parentfd399eb16719bedabdf62db9fc606d61f80ebd19 (diff)
downloadillumos-packaging-a61d729dba82c9fe3d3a1a013b0ea50bb218ce0d.tar.gz
Fix stdio.h for _LARGEFILE64_SOURCE
-rw-r--r--libc/debian/changelog8
-rw-r--r--libc/debian/patches/libc-stdio-_LARGEFILE64_SOURCE.patch25
-rw-r--r--libc/debian/patches/series1
3 files changed, 34 insertions, 0 deletions
diff --git a/libc/debian/changelog b/libc/debian/changelog
index 36b466c..bcdb0eb 100644
--- a/libc/debian/changelog
+++ b/libc/debian/changelog
@@ -1,3 +1,11 @@
+libc (2.10-12) UNRELEASED; urgency=low
+
+ * libc-stdio-_LARGEFILE64_SOURCE.patch:
+ Fix stdio.h for _LARGEFILE64_SOURCE.
+ fseeko64() could be defined, but off64_t not.
+
+ -- Igor Pashev <pashev.igor@gmail.com> Wed, 27 Mar 2013 03:58:05 +0000
+
libc (2.10-11) unstable; urgency=low
* Added sac.h (libnsl)
diff --git a/libc/debian/patches/libc-stdio-_LARGEFILE64_SOURCE.patch b/libc/debian/patches/libc-stdio-_LARGEFILE64_SOURCE.patch
new file mode 100644
index 0000000..37148d1
--- /dev/null
+++ b/libc/debian/patches/libc-stdio-_LARGEFILE64_SOURCE.patch
@@ -0,0 +1,25 @@
+Description: these functions maybe defined, but off64_t - not,
+ hopefully fix that. Problem arised when compiling jigit.
+Index: libc/usr/src/head/stdio.h
+===================================================================
+--- libc.orig/usr/src/head/stdio.h 2013-03-27 03:51:37.297630906 +0000
++++ libc/usr/src/head/stdio.h 2013-03-27 03:56:09.025986142 +0000
+@@ -360,8 +360,8 @@
+ * The following are defined as part of the transitional Large File Summit
+ * interfaces.
+ */
+-#if defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \
+- !defined(__PRAGMA_REDEFINE_EXTNAME))
++#if defined(_LARGEFILE64_SOURCE) && (_FILE_OFFSET_BITS != 64)
++#if !defined(__PRAGMA_REDEFINE_EXTNAME)
+ extern FILE *fopen64(const char *, const char *);
+ extern FILE *freopen64(const char *, const char *, FILE *);
+ extern FILE *tmpfile64(void);
+@@ -370,6 +370,7 @@
+ extern int fseeko64(FILE *, off64_t, int);
+ extern off64_t ftello64(FILE *);
+ #endif
++#endif
+
+ #else /* !defined __STDC__ */
+
diff --git a/libc/debian/patches/series b/libc/debian/patches/series
index b8e6eff..b009182 100644
--- a/libc/debian/patches/series
+++ b/libc/debian/patches/series
@@ -74,3 +74,4 @@ stdio.h-includes-features.h.patch
libc-add-tdestroy.patch
rpcinfo-MAX.patch
libc-add-gnu-strerror_r.patch
+libc-stdio-_LARGEFILE64_SOURCE.patch