diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-03-27 04:00:20 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-03-27 04:00:20 +0000 |
commit | a61d729dba82c9fe3d3a1a013b0ea50bb218ce0d (patch) | |
tree | 1865d1bfcdcbba5f726d84f80aa134a519fa4ac8 /libc/debian/patches | |
parent | fd399eb16719bedabdf62db9fc606d61f80ebd19 (diff) | |
download | illumos-packaging-a61d729dba82c9fe3d3a1a013b0ea50bb218ce0d.tar.gz |
Fix stdio.h for _LARGEFILE64_SOURCE
Diffstat (limited to 'libc/debian/patches')
-rw-r--r-- | libc/debian/patches/libc-stdio-_LARGEFILE64_SOURCE.patch | 25 | ||||
-rw-r--r-- | libc/debian/patches/series | 1 |
2 files changed, 26 insertions, 0 deletions
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 |