summaryrefslogtreecommitdiff
path: root/filesystems/glusterfs/patches/patch-argp-standalone_argp-fmtstream.c
diff options
context:
space:
mode:
authorjoerg <joerg>2013-09-15 12:29:21 +0000
committerjoerg <joerg>2013-09-15 12:29:21 +0000
commitc2ce1f54617aaec9c5496e20bd105c138999d483 (patch)
tree221fd1d541b50369d2cfbc06ca6bcc51e6f28594 /filesystems/glusterfs/patches/patch-argp-standalone_argp-fmtstream.c
parenta21fa660caa477307e17c3dd6188b0565ea3e14d (diff)
downloadpkgsrc-c2ce1f54617aaec9c5496e20bd105c138999d483.tar.gz
Restore argp patches. They haven't changed at all and they are still
needed.
Diffstat (limited to 'filesystems/glusterfs/patches/patch-argp-standalone_argp-fmtstream.c')
-rw-r--r--filesystems/glusterfs/patches/patch-argp-standalone_argp-fmtstream.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/filesystems/glusterfs/patches/patch-argp-standalone_argp-fmtstream.c b/filesystems/glusterfs/patches/patch-argp-standalone_argp-fmtstream.c
new file mode 100644
index 00000000000..efbbb5ba47e
--- /dev/null
+++ b/filesystems/glusterfs/patches/patch-argp-standalone_argp-fmtstream.c
@@ -0,0 +1,19 @@
+$NetBSD: patch-argp-standalone_argp-fmtstream.c,v 1.3 2013/09/15 12:29:21 joerg Exp $
+
+--- argp-standalone/argp-fmtstream.c.orig 2013-07-12 17:43:25.000000000 +0000
++++ argp-standalone/argp-fmtstream.c
+@@ -389,6 +389,7 @@ __argp_fmtstream_printf (struct argp_fmt
+ weak_alias (__argp_fmtstream_printf, argp_fmtstream_printf)
+ #endif
+
++#if __STDC_VERSION__ - 199900L < 1
+ /* Duplicate the inline definitions in argp-fmtstream.h, for compilers
+ * that don't do inlining. */
+ size_t
+@@ -471,5 +472,6 @@ __argp_fmtstream_point (argp_fmtstream_t
+ __argp_fmtstream_update (__fs);
+ return __fs->point_col >= 0 ? __fs->point_col : 0;
+ }
++#endif
+
+ #endif /* !ARGP_FMTSTREAM_USE_LINEWRAP */