aboutsummaryrefslogtreecommitdiff
path: root/extra/argp/patches
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-01-12 15:54:18 +0300
committerCem Keylan <cem@ckyln.com>2021-01-12 15:54:18 +0300
commite4f0698ca150da06ddaaf0ab7e83b5155b7992e5 (patch)
tree7f23cf4d8b548096a1c96fb9e8460464b03c23b9 /extra/argp/patches
parentedebbba4a616070887bad6bcd026eb94b609f1e4 (diff)
downloadrepository-e4f0698ca150da06ddaaf0ab7e83b5155b7992e5.tar.gz
argp: add new package at 1.3
Diffstat (limited to 'extra/argp/patches')
-rw-r--r--extra/argp/patches/fix-inline.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/extra/argp/patches/fix-inline.patch b/extra/argp/patches/fix-inline.patch
new file mode 100644
index 00000000..88c44864
--- /dev/null
+++ b/extra/argp/patches/fix-inline.patch
@@ -0,0 +1,32 @@
+Effectively disable inlining of functions which are defined
+in argp-fmtstream.c because of name space conflicts when
+including argp-namefrob.h
+
+--- a/argp-fmtstream.h 2003-12-11 09:37:05.000000000 +0100
++++ b/argp-fmtstream.h 2016-09-27 09:19:48.891000000 +0200
+@@ -192,6 +192,7 @@
+ extern int _argp_fmtstream_ensure (argp_fmtstream_t __fs, size_t __amount);
+ extern int __argp_fmtstream_ensure (argp_fmtstream_t __fs, size_t __amount);
+
++#ifdef ARGP_USE_INLINE
+ #ifdef __OPTIMIZE__
+ /* Inline versions of above routines. */
+
+@@ -208,7 +209,7 @@
+ #endif
+
+ #ifndef ARGP_FS_EI
+-#define ARGP_FS_EI extern inline
++#define ARGP_FS_EI static inline
+ #endif
+
+ ARGP_FS_EI size_t
+@@ -306,6 +307,8 @@
+
+ #endif /* __OPTIMIZE__ */
+
++#endif /* ARGP_USE_INLINE */
++
+ #endif /* ARGP_FMTSTREAM_USE_LINEWRAP */
+
+ #endif /* argp-fmtstream.h */